[Mesa-dev] [PATCH] egl_dri2/x11: Fix build failure for XCB_DRI2_MINOR_VERSION < 3

Maarten Lankhorst m.b.lankhorst at gmail.com
Wed Dec 21 07:28:05 PST 2011


Signed-off-by: Maarten Lankhorst <m.b.lankhorst at gmail.com>

---

 src/egl/drivers/dri2/platform_x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index a00e3fe..6ca7838 100644
--- a/src/egl/drivers/dri2/platform_x11.c
+++ b/src/egl/drivers/dri2/platform_x11.c
@@ -697,9 +697,9 @@ static int64_t
 dri2_swap_buffers_msc(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *draw,
                       int64_t msc, int64_t divisor, int64_t remainder)
 {
+   struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw);
 #if XCB_DRI2_MINOR_VERSION >= 3
    struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
-   struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw);
    uint32_t msc_hi = msc >> 32;
    uint32_t msc_lo = msc & 0xffffffff;
    uint32_t divisor_hi = divisor >> 32;




More information about the mesa-dev mailing list