GLSL shader crashes program

I have been working on a program which does a YUV to RGB conversion using three textures, similar to the code posted here: http://www.fourcc.org/source/YUV420P-OpenGL-GLSLang.c

I am working on a linux box with kernel version 2.6.20, and a nVidia 7xxx card.

When I go to render the quad, if I have the textures specified correctly (or as I would imagine, correctly) the program crashes when I begin drawing. If I do not set the textures, the program runs as I would imagine it should, considering the textures are not set.

Are there any ideas as to what may be happening?

Thanks
Rob

Use

glGetError()

probably in combination with

gluErrorString()

after you setup the texture to find out if there is an error.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.