dri3: Fix pixmap buf_id computation
authorKeith Packard <keithp@keithp.com>
Fri, 8 Nov 2013 03:01:48 +0000 (19:01 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 8 Nov 2013 03:08:09 +0000 (19:08 -0800)
Looks like some kind of rebase damage to me...

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/dri3_glx.c

index 61cb2de1d00671b388978dc4f7c84a5394df7885..0c8e0646298398f95021c7e153cabcd1cd1b490a 100644 (file)
@@ -945,7 +945,7 @@ dri3_get_pixmap_buffer(__DRIdrawable *driDrawable,
                        void *loaderPrivate)
 {
    struct dri3_drawable                 *pdraw = loaderPrivate;
-   int                                  buf_id = buffer_type == dri3_pixmap_buf_id(buffer_type);
+   int                                  buf_id = dri3_pixmap_buf_id(buffer_type);
    struct dri3_buffer                   *buffer = pdraw->buffers[buf_id];
    Pixmap                               pixmap;
    xcb_dri3_buffer_from_pixmap_cookie_t bp_cookie;