Bug 439682

Summary: recent mesa break SDL using opengl games which request a stencil buffer
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: ajax, krh, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-18 22:53:07 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:

Description Hans de Goede 2008-03-30 12:33:49 UTC
Description of problem:
-take a fully up2date rawhide (x86_64, r350 card)
-start supertuxkart
-get this message:
FATAL: ssgInit called without a valid OpenGL context.

This goes away if you edit the source code of supertuxkart to not request a
stencil buffer, when a stencil buffer is requested the SDL_SetVideoMode() call
fails (because it cannot find a visual with a stencilbuffer I guess), so there
is no glContext, causing the above error.

Other symptoms, same problem:
-start blobAndConquer
-goto options -> additional options
-notice how shadow is not available because no stencil buffers were detected.

Comment 1 Hans de Goede 2008-04-15 08:49:19 UTC
I've filed a new bug with a better description and a patch for the supertuxkart
problem: bug 442510. This still leaves the blobAndConquer stencil buffer support
detection not working, I'll look into that as time permits.


Comment 2 Hans de Goede 2008-04-15 18:48:25 UTC
krh, adding you to the CC as I just noticed the commit causing (exposing) this
issue was done by you. Any input on howto move forward with this would be much
appreciated, currently I'm thinking about either:
* use the patch attached here
* patch applications to use / also try glXChooseFBConfig()


Comment 3 Hans de Goede 2008-04-15 18:51:18 UTC
Darn sorry krh, wrong bug, adding you to bug 442510 instead / too.


Comment 4 Hans de Goede 2008-04-18 22:53:07 UTC
bug 442510 now contains a much improved patch fixing both issues reported here,
closing this as a dup of bug 442510.

*** This bug has been marked as a duplicate of 442510 ***