http://bugs.freedesktop.org/show_bug.cgi?id=15515

           Summary: PATCH: glXChooseVisual behavior change causes SDL app
                    using a stencil buffer to fail
           Product: Mesa
           Version: CVS
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=15923)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=15923)
PATCH: glXChooseVisual behavior change causes SDL app using a stencil buffer to
fail

This commit:
http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commitdiff;h=6c533ea2d1953152f7d95d6c984e0d287edb46c2

Adds seperate visual and fbconfigs list to the GLX __GLXscreenConfigsRec
struct, where there used to be one list with both concatenated. 

It also changes various functions to use either the visual list or the fbcondig
list. Reading through various SGI manpages describing these functions these
changes seem correct.

However some applications / library depend on the old behavior, so this change
is causing various issues.

glXChooseVisual() used to check both real visuals and fbconfig "pseudo" visuals
to find a visual matching the requested attrributes, but now it only checks the
real visuals, which causes issues with SDL applications as SDL uses
glXChooseVisual() to get a visual and when the application and thus SDL
requests a stencilbuffer this fails, as only fbconfigs seem to offer
stencilbuffers and not the real visuals.

One could argue this is a bug in SDL that needs fixing, but this code has been
unchanged and worked in SDL for a long time, and it not only works with mesa
but also with other (nvidia, ati) opengl implementations.

So I would rather see this behavioral change reverted. The attached patch
restores the checking of both real visuals and fbconfigs in glXChooseVisual(),
fixing stencil buffer using SDL apps.

Note 1: I suspect that there are many other applications which will get bitten
by this behavioral change too, which is why I believe this should be fixed at
the mesa level.

Note 2: These changes cause other issues too, I'll fill a seperate bug for
those.

Note 3: I would very much appreciate it if someone could reply to this quickly
(not fix, but reply) as the Fedora-9 release is in 2 weeks and I really want to
see this fixed before then (F-9 ships a mesa-7.1 git snapshot)


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to