glx: move declarations before code
This commit is contained in:
+7
-3
@@ -455,16 +455,20 @@ dri2_wait_gl(struct glx_context *gc)
|
||||
static void
|
||||
dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate)
|
||||
{
|
||||
struct glx_display *priv;
|
||||
struct dri2_display *pdp;
|
||||
struct glx_context *gc;
|
||||
struct dri2_drawable *pdraw = loaderPrivate;
|
||||
|
||||
if (!pdraw)
|
||||
return;
|
||||
|
||||
if (!pdraw->base.psc)
|
||||
return;
|
||||
|
||||
struct glx_display *priv = __glXInitialize(pdraw->base.psc->dpy);
|
||||
struct dri2_display *pdp = (struct dri2_display *)priv->dri2Display;
|
||||
struct glx_context *gc = __glXGetCurrentContext();
|
||||
priv = __glXInitialize(pdraw->base.psc->dpy);
|
||||
pdp = (struct dri2_display *) priv->dri2Display;
|
||||
gc = __glXGetCurrentContext();
|
||||
|
||||
/* Old servers don't send invalidate events */
|
||||
if (!pdp->invalidateAvailable)
|
||||
|
||||
Reference in New Issue
Block a user