Original Post
Hi! I am trying to use textures in my GLSL shader. I read that it is necessary to add a line of code to the vertex shader in order to define the texture coordinates for the fragement shader. Currently my vertex shader looks like that:
void main(){
gl_Position = ftransform();
gl_TexCoord[0] = gl_MultiTexCoord0;
}
The second line causes a fatal error. When the shader is used, first the whole system blocks (I can't even move the cursor anymore). After a few seconds the screen gets black and my computer restarts. What could be the reason for this problem? EDIT: All tests of the tool "OpenGL Extensions Viewer" succeed, even the shader tests (which also use textures). rgds