Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 302960 Details for
Bug 442510
PATCH: glXChooseVisual behavior change causes SDL app using a stencil buffer to fail
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
PATCH: prefer glxvisuals with stencil buffer for default visuals
xserver-1.5.0-stencilbits-in-glx-visuals.patch (text/plain), 1.64 KB, created by
Hans de Goede
on 2008-04-18 22:51:43 UTC
(
hide
)
Description:
PATCH: prefer glxvisuals with stencil buffer for default visuals
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2008-04-18 22:51:43 UTC
Size:
1.64 KB
patch
obsolete
>--- xorg-server-20080415/GL/glx/glxscreens.c~ 2008-04-19 00:23:15.000000000 +0200 >+++ xorg-server-20080415/GL/glx/glxscreens.c 2008-04-19 00:25:53.000000000 +0200 >@@ -437,6 +437,7 @@ initGlxVisual(VisualPtr visual, __GLXcon > typedef struct { > GLboolean doubleBuffer; > GLboolean depthBuffer; >+ GLboolean stencilBuffer; > } FBConfigTemplateRec, *FBConfigTemplatePtr; > > static __GLXconfig * >@@ -453,6 +454,8 @@ pickFBConfig(__GLXscreen *pGlxScreen, FB > continue; > if ((config->depthBits > 0) != template->depthBuffer) > continue; >+ if ((config->stencilBits > 0) != template->stencilBuffer) >+ continue; > > return config; > } >@@ -466,8 +469,9 @@ addMinimalSet(__GLXscreen *pGlxScreen) > __GLXconfig *config; > VisualPtr visuals; > int i, j; >- FBConfigTemplateRec best = { GL_TRUE, GL_TRUE }; >- FBConfigTemplateRec minimal = { GL_FALSE, GL_FALSE }; >+ FBConfigTemplateRec best = { GL_TRUE, GL_TRUE, GL_TRUE }; >+ FBConfigTemplateRec good = { GL_TRUE, GL_TRUE, GL_FALSE }; >+ FBConfigTemplateRec minimal = { GL_FALSE, GL_FALSE, GL_FALSE }; > > pGlxScreen->visuals = xcalloc(pGlxScreen->pScreen->numVisuals, > sizeof (__GLXconfig *)); >@@ -480,8 +484,11 @@ addMinimalSet(__GLXscreen *pGlxScreen) > for (i = 0, j = 0; i < pGlxScreen->pScreen->numVisuals; i++) { > if (visuals[i].nplanes == 32) > config = pickFBConfig(pGlxScreen, &minimal, visuals[i].class); >- else >+ else { > config = pickFBConfig(pGlxScreen, &best, visuals[i].class); >+ if (config == NULL) >+ config = pickFBConfig(pGlxScreen, &good, visuals[i].class); >+ } > if (config == NULL) > config = pGlxScreen->fbconfigs; > if (config == NULL)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 442510
:
302423
| 302960