I have a GLSL code that compiled with out error on ATI card but failed on NVIDIA 9800gt with latest driver.
#version 150 core
precision highp float;
const int sampleCount = 4;
uniform sampler2DMS diffuseTexture; //1
in vec2 texCoordFull; //full screen texture coordinate
uniform vec4 ambient;
out vec4 outColor;
void main()
{
ivec2 texCoordFullInteger = ivec2(texCoordFull);
vec4 textureColor = vec4(0.0);
for(int i=0;i<sampleCount;i++){
textureColor += texelFetch(diffuseTexture,texCoordFullInteger,i);
}
textureColor /= sampleCount;
outColor = ambient*textureColor;
}
its just a ambient pass of MSAA-deferred shading (other GLSL code that involed texelFetch also generate same error)
when compile on NVIDIA 9800gt it generate the following error
error C1115: unable to find compatible overloaded function "texelFetch(
sampler2DMS, ivec2, int)
My Program using OpenGL 3.2 compatibility profile(but doesn’t contain any deprecated code except for some isolate text rendering code)