Commit b7f802ec authored by Brian Paul's avatar Brian Paul

glx: gcc 2.95 build fix (move declaration before code)

Adapted from patch by Matthieu Herbb <>
parent a61a1a81
......@@ -864,6 +864,12 @@ PUBLIC void glXSwapBuffers(Display *dpy, GLXDrawable drawable)
GLXContext gc;
GLXContextTag tag;
CARD8 opcode;
#ifdef USE_XCB
xcb_connection_t *c;
xGLXSwapBuffersReq *req;
__GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable, NULL);
......@@ -892,12 +898,10 @@ PUBLIC void glXSwapBuffers(Display *dpy, GLXDrawable drawable)
#ifdef USE_XCB
xcb_connection_t* c = XGetXCBConnection(dpy);
c = XGetXCBConnection(dpy);
xcb_glx_swap_buffers(c, tag, drawable);
xGLXSwapBuffersReq *req;
/* Send the glXSwapBuffers request */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment