Red Hat Bugzilla – Bug 181027
glGenTextures fails if no glconext has been set
Last modified: 2007-11-30 17:11:23 EST
Compile the attached test.c with:
gcc -o test test.c -lGL
Run it, notice the segfault.
Now compile test2.c with:
gcc -o test2 test2.c `sdl-config --libs` -lGL
The only difference between the 2 is that test2 first sets/creates an opengl
videocontext and test doesnot. I've taken over as maintainer of scorched 3d
which does stuff like this when run in server mode (don't ask why) and
scorched3d has been running ok under Linux and freebsd for a long time, also on
windows with this code.
I'm seeing this with the latest rawhide x86_64 on a radeon 250, I believe this
does not happen on my workpc which has integrated intel video and is i386, but I
cannot check this right now.
It could be that scorched3d is just being bad, in which case I'll try to fix it,
but even then an error message would be more appropiate then a crash.
Created attachment 124547 [details]
Created attachment 124548 [details]
I've just build scorched3d-39.1-3 which works around this (iow doesnot use
openGL calls when it doesn't have a context). So you can concider this rather
low priority if any at all.
scorched3d upstream has admitted that this indeed is a scorched3d bug and not a
openGL (mesa)bug, closing.
Sorry for the noise.