mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
glx: gcc 2.95 build fix (move declaration before code)
Adapted from patch by Matthieu Herbb <matthieu.herrb@laas.fr>
This commit is contained in:
parent
a61a1a8181
commit
b7f802eca2
1 changed files with 7 additions and 3 deletions
|
|
@ -864,6 +864,12 @@ PUBLIC void glXSwapBuffers(Display *dpy, GLXDrawable drawable)
|
|||
GLXContext gc;
|
||||
GLXContextTag tag;
|
||||
CARD8 opcode;
|
||||
#ifdef USE_XCB
|
||||
xcb_connection_t *c;
|
||||
#else
|
||||
xGLXSwapBuffersReq *req;
|
||||
#endif
|
||||
|
||||
#ifdef GLX_DIRECT_RENDERING
|
||||
__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);
|
||||
xcb_flush(c);
|
||||
#else
|
||||
xGLXSwapBuffersReq *req;
|
||||
|
||||
/* Send the glXSwapBuffers request */
|
||||
LockDisplay(dpy);
|
||||
GetReq(GLXSwapBuffers,req);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue