View Full Version : glGenTexture and glBindTexture

07-11-2005, 07:42 AM
I use OpenGL functions like glGenTexture or glBindTexture for a long time, but today something strange happends !!!

I've got a segmentation fault on this line:

glGenTextures(1, &Texture);...in which Texture is a GLuint, declared as follow in my .h file:

GLuint Texture;I never had a segmention fault caused by this line, and I didn't think this instruction could cause a segmentation fault...

Where this segmentation fault can come from ???

Thanks a lot,

07-11-2005, 09:39 AM
Looks very strange, try to run this in a debugger.

07-13-2005, 07:16 AM
Probably your executable and source files are out of sync, try to recompile whole project, make sure that you don't have lf/cr issue in source file, make sure that you don't have another (old) copy of dll with that copy in your PATH (if you compile code into dll)...