mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-09 02:39:00 +00:00
fix use of uninitialised value in one of our local changes.
ok matthieu@
This commit is contained in:
3
dist/Mesa/src/glx/x11/glx_pbuffer.c
vendored
3
dist/Mesa/src/glx/x11/glx_pbuffer.c
vendored
@@ -220,7 +220,7 @@ GetDrawableAttribute( Display *dpy, GLXDrawable drawable,
|
||||
unsigned int length;
|
||||
unsigned int i;
|
||||
unsigned int num_attributes;
|
||||
GLboolean use_glx_1_3 = ((priv->majorVersion > 1)
|
||||
GLboolean use_glx_1_3;
|
||||
|| (priv->minorVersion >= 3));
|
||||
|
||||
if ( (dpy == NULL) || (drawable == 0) ) {
|
||||
@@ -228,6 +228,7 @@ GetDrawableAttribute( Display *dpy, GLXDrawable drawable,
|
||||
}
|
||||
|
||||
priv = __glXInitialize(dpy);
|
||||
use_glx_1_3 = ((priv->majorVersion > 1) || (priv->minorVersion >= 3));
|
||||
*value = 0;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user