glx: move declarations before code
authorBrian Paul <brianp@vmware.com>
Tue, 9 Aug 2011 14:58:20 +0000 (08:58 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 9 Aug 2011 14:58:20 +0000 (08:58 -0600)
src/glx/dri2_glx.c

index 80e4da30bebe6e2b7e8783fc28e32cca47efe1bb..d9524d765bd5b97367abc82d996153791a8fa4fa 100644 (file)
@@ -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)