aerkis

vertex texture fetch

Discussion created by aerkis on Jul 31, 2011
Latest reply on Aug 4, 2011 by kenwang
works on ATI cards?

Hello,

I have a strange crash with a simple GLSL code when I try to use it on an ATI card (It works perfectly on NVidia cards).
There is my GLSL code:

Vertex shader:

uniform sampler2D tex;  
varying vec4 texColor
;          
void main()
{  
        gl_Position
= ftransform();
        gl_TexCoord
[0] = gl_MultiTexCoord0;
        texColor
= texture2DLod(tex, gl_TexCoord[0].st, 0.0);
 
}

Fragment shader:

varying vec4 texColor;  
void main()
{  
    gl_FragColor
= texColor;
}



With this code, crash seems to be occured in ATI drivers (atioglxx.dll) however I have the last drivers.
Is vertex texture fetch worked correctly on ATI cards?
Thanks you by advance.

Outcomes