Mesa (10.0): dri3: Fix pixmap buf_id computation

Ian Romanick idr at kemper.freedesktop.org
Fri Nov 8 03:18:06 UTC 2013


Module: Mesa
Branch: 10.0
Commit: 035cce83f7b3d9a037c9e7cc17a212d6cf7e927f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=035cce83f7b3d9a037c9e7cc17a212d6cf7e927f

Author: Keith Packard <keithp at keithp.com>
Date:   Thu Nov  7 19:01:48 2013 -0800

dri3: Fix pixmap buf_id computation

Looks like some kind of rebase damage to me...

Signed-off-by: Keith Packard <keithp at keithp.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/glx/dri3_glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index 61cb2de..0c8e064 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -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;




More information about the mesa-commit mailing list