mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 07:48:04 +02:00
fixed mistake in glXGetConfig(GLX_VISUAL_CAVEAT_EXT)
This commit is contained in:
parent
aa51bb083b
commit
962f426915
1 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: fakeglx.c,v 1.29 2000/03/31 01:17:52 brianp Exp $ */
|
||||
/* $Id: fakeglx.c,v 1.30 2000/03/31 18:17:01 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -1516,7 +1516,11 @@ Fake_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
|
|||
*/
|
||||
case GLX_VISUAL_CAVEAT_EXT:
|
||||
/* test for zero, just in case */
|
||||
return (glxvis->VisualCaveat > 0) ? glxvis->VisualCaveat : GLX_NONE_EXT;
|
||||
if (glxvis->VisualCaveat > 0)
|
||||
*value = glxvis->VisualCaveat;
|
||||
else
|
||||
*value = GLX_NONE_EXT;
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* Extensions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue