* Fix for "Internal error wrong operand type built in unary operator function. Type: in sampler2DMS" if multisample is not being used (old ATI driver bug)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8326 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 13 years ago
parent fd3c84ccce
commit d38b469de6
  1. 4
      engine/src/core-data/Common/ShaderLib/MultiSample.glsllib

@ -15,8 +15,8 @@ uniform int m_NumSamplesDepth;
#define DEPTHTEXTURE sampler2D #define DEPTHTEXTURE sampler2D
#endif #endif
// NOTE: Only define multisample functions if multisample is being used! // NOTE: Only define multisample functions if multisample is available and is being used!
#ifdef GL_ARB_texture_multisample #if defined(GL_ARB_texture_multisample) && (defined(RESOLVE_MS) || defined(RESOLVE_DEPTH_MS))
vec4 textureFetch(in sampler2DMS tex,in vec2 texC, in int numSamples){ vec4 textureFetch(in sampler2DMS tex,in vec2 texC, in int numSamples){
ivec2 iTexC = ivec2(texC * textureSize(tex)); ivec2 iTexC = ivec2(texC * textureSize(tex));
vec4 color = vec4(0.0); vec4 color = vec4(0.0);

Loading…
Cancel
Save