diff options
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 9a7dd7a56e0..49a2179bbf0 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -738,13 +738,13 @@ dri2SwapBuffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor, __DRI2_THROTTLE_SWAPBUFFER); } else { #ifdef X_DRI2SwapBuffers - if (psc->f) { - struct glx_context *gc = __glXGetCurrentContext(); + if (psc->f) { + struct glx_context *gc = __glXGetCurrentContext(); - if (gc) { - (*psc->f->flush)(priv->driDrawable); + if (gc) { + (*psc->f->flush)(priv->driDrawable); + } } - } dri2Throttle(psc, priv, __DRI2_THROTTLE_SWAPBUFFER); |