aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxcurrent.c
diff options
context:
space:
mode:
authorMatthieu Herrb <[email protected]>2009-01-11 16:56:34 -0700
committerBrian <[email protected]>2009-01-11 16:56:34 -0700
commit436024561aa6d78f78601f690803bd3845d225e7 (patch)
tree3d91b041e0197ddfd8a23c9aed765983ad02422e /src/glx/x11/glxcurrent.c
parent0f0922f93cbe997a95575c955ab1544bb5cd1d7d (diff)
Build fixes for gcc 2.95
Diffstat (limited to 'src/glx/x11/glxcurrent.c')
-rw-r--r--src/glx/x11/glxcurrent.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glx/x11/glxcurrent.c b/src/glx/x11/glxcurrent.c
index f3eb045d9f9..5af46cf0ba7 100644
--- a/src/glx/x11/glxcurrent.c
+++ b/src/glx/x11/glxcurrent.c
@@ -365,7 +365,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
const CARD8 oldOpcode = ((gc == oldGC) || (oldGC == &dummyContext))
? opcode : __glXSetupForCommand(oldGC->currentDpy);
Bool bindReturnValue;
-
+ __GLXattribute *state;
if (!opcode || !oldOpcode) {
return GL_FALSE;
@@ -489,8 +489,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
} while (0);
#endif
- __GLXattribute *state =
- (__GLXattribute *) (gc->client_state_private);
+ state = (__GLXattribute *) (gc->client_state_private);
gc->currentContextTag = reply.contextTag;
if (state->array_state == NULL) {