summaryrefslogtreecommitdiff
path: root/dist/Mesa
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-01-11 20:32:32 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-01-11 20:32:32 +0000
commit93f9e08580f4b88604fe0b5a52a94def0e3fcded (patch)
tree71616a8d11f01da1281d2aa777661341f454805d /dist/Mesa
parent06e23e46e751dd184dc6323ff9b2555182f40ddb (diff)
fix use of uninitialised value in one of our local changes.
ok matthieu@
Diffstat (limited to 'dist/Mesa')
-rw-r--r--dist/Mesa/src/glx/x11/glx_pbuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dist/Mesa/src/glx/x11/glx_pbuffer.c b/dist/Mesa/src/glx/x11/glx_pbuffer.c
index 2f4c602fe..db9fb4b55 100644
--- a/dist/Mesa/src/glx/x11/glx_pbuffer.c
+++ b/dist/Mesa/src/glx/x11/glx_pbuffer.c
@@ -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;