fix build with gcc 2.95

This commit is contained in:
matthieu 2007-03-05 22:10:59 +00:00
parent 9f930f604f
commit ddf969dda9

View File

@ -1689,7 +1689,8 @@ USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw,
gc->currentReadable = read;
if (!gc->isDirect) {
if (!IndirectAPI)
__GLXattribute *state;
if (!IndirectAPI)
IndirectAPI = __glXNewIndirectAPI();
_glapi_set_dispatch(IndirectAPI);
@ -1700,7 +1701,7 @@ USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw,
} while (0);
#endif
__GLXattribute *state =
state =
(__GLXattribute *)(gc->client_state_private);
gc->currentContextTag = reply.contextTag;