mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
Avoid compiler warning for unused glx_dpy variable.
My earlier attempt to eliminate this warning (c0ca2bfb2a) was invalid as it removed the variable declaration. Jerome correctly reverted that (600c85efdb) since the variable is used when X_DRI2SwapBuffers is defined. Here, instead of removing the declaration, we move it to inside the correct #ifdef.
This commit is contained in:
parent
742ee7935d
commit
14a3d61ea3
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,6 @@ static Bool
|
|||
DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
|
||||
{
|
||||
XExtDisplayInfo *info = DRI2FindDisplay(dpy);
|
||||
__GLXdisplayPrivate *glx_dpy = __glXInitialize(dpy);
|
||||
|
||||
XextCheckExtension(dpy, info, dri2ExtensionName, False);
|
||||
|
||||
|
|
@ -100,6 +99,7 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
|
|||
GLXBufferSwapComplete *aevent = (GLXBufferSwapComplete *)event;
|
||||
xDRI2BufferSwapComplete *awire = (xDRI2BufferSwapComplete *)wire;
|
||||
__GLXDRIdrawable *pdraw;
|
||||
__GLXdisplayPrivate *glx_dpy = __glXInitialize(dpy);
|
||||
|
||||
/* Ignore swap events if we're not looking for them */
|
||||
pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, awire->drawable);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue