From: Owain G. Ainsworth Date: Sun, 11 Jan 2009 20:40:07 +0000 (+0000) Subject: Fix build with GCC 2.95. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4866f8a5229d4769a49b4c54a1675a61497d206;p=mesa.git Fix build with GCC 2.95. --- diff --git a/src/glx/x11/glx_pbuffer.c b/src/glx/x11/glx_pbuffer.c index c63d53439d5..a602cd28817 100644 --- a/src/glx/x11/glx_pbuffer.c +++ b/src/glx/x11/glx_pbuffer.c @@ -220,14 +220,14 @@ GetDrawableAttribute(Display * dpy, GLXDrawable drawable, unsigned int length; unsigned int i; unsigned int num_attributes; + GLboolean use_glx_1_3; if ((dpy == NULL) || (drawable == 0)) { return 0; } priv = __glXInitialize(dpy); - GLboolean use_glx_1_3 = ((priv->majorVersion > 1) - || (priv->minorVersion >= 3)); + use_glx_1_3 = ((priv->majorVersion > 1) || (priv->minorVersion >= 3)); *value = 0;