diff options
author | Kristian Høgsberg <krh@redhat.com> | 2006-03-30 20:08:44 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2006-03-30 20:08:44 +0000 |
commit | 8ec42a10ff04e51e8d0b4cffb15064d901bc398d (patch) | |
tree | 2af06be9148f62d706160087622d22908f5cea48 /GL/glx/glxcmds.c | |
parent | 08e319091fae7a60ae9fa757659cfde2966af9e9 (diff) |
Mark the ARGB FBConfig as nonconforming to prevent drivers and apps from
falling over.
Add @GLX_DEFINES@ so GLcore gets compiled with TLS support if configured.
Only destroy the mesa buffer if it got initialized.
Diffstat (limited to 'GL/glx/glxcmds.c')
-rw-r--r-- | GL/glx/glxcmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/GL/glx/glxcmds.c b/GL/glx/glxcmds.c index 3a3b43027..0b7525eb9 100644 --- a/GL/glx/glxcmds.c +++ b/GL/glx/glxcmds.c @@ -1034,10 +1034,10 @@ __glXCreateARGBConfig(__GLXscreen *screen) if (visual == NULL || visual->class != TrueColor) return; + /* Stop now if we already added the mode. */ if (_gl_context_modes_find_visual (screen->modes, visual->vid)) return; - /* Stop now if we already added the mode. */ modes = _gl_context_modes_create(1, sizeof(__GLcontextModes)); if (modes == NULL) return; @@ -1073,6 +1073,8 @@ __glXCreateARGBConfig(__GLXscreen *screen) modes->depthBits = 0; modes->haveStencilBuffer = FALSE; modes->stencilBits = 0; + + modes->visualRating = GLX_NON_CONFORMANT_CONFIG; } |