Mesa (master): Fix build with GCC 2.95.

Brian Paul brianp at kemper.freedesktop.org
Sun Jan 11 23:49:10 UTC 2009


Module: Mesa
Branch: master
Commit: b4866f8a5229d4769a49b4c54a1675a61497d206
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4866f8a5229d4769a49b4c54a1675a61497d206

Author: Owain G. Ainsworth <oga at openbsd.org>
Date:   Sun Jan 11 20:40:07 2009 +0000

Fix build with GCC 2.95.

---

 src/glx/x11/glx_pbuffer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/glx/x11/glx_pbuffer.c b/src/glx/x11/glx_pbuffer.c
index c63d534..a602cd2 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;
 




More information about the mesa-commit mailing list