summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-08-09 08:58:20 -0600
committerBrian Paul <[email protected]>2011-08-09 08:58:20 -0600
commite0496b63ff0d41a36812b78e9062e92590fcdd55 (patch)
treebd69bb923b0238802b3707122992f9448e54bf4a
parentafd1d857752b5c30a3082068f8bb9002e0c69699 (diff)
glx: move declarations before code
-rw-r--r--src/glx/dri2_glx.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 80e4da30beb..d9524d765bd 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -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)