Bug 181027

Summary: glGenTextures fails if no glconext has been set
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: mesaAssignee: Mike A. Harris <mharris>
Status: CLOSED NOTABUG QA Contact: X/OpenGL Maintenance List <xgl-maint>
Severity: medium Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-13 11:39:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test.c
none
test2.c none

Description Hans de Goede 2006-02-11 21:51:18 UTC
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

Runs fine.

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.

Comment 1 Hans de Goede 2006-02-11 21:51:18 UTC
Created attachment 124547 [details]
test.c

Comment 2 Hans de Goede 2006-02-11 21:51:56 UTC
Created attachment 124548 [details]
test2.c

Comment 3 Hans de Goede 2006-02-12 13:15:56 UTC
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.


Comment 4 Hans de Goede 2006-02-13 11:39:16 UTC
scorched3d upstream has admitted that this indeed is a scorched3d bug and not a
openGL (mesa)bug, closing.

Sorry for the noise.