xmesa: set back-buffer's drawable field
authorBrian Paul <brianp@vmware.com>
Mon, 9 Mar 2009 20:33:19 +0000 (14:33 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 9 Mar 2009 22:27:56 +0000 (16:27 -0600)
Fixes back-buffer rendering when MESA_BACK_BUFFER=pixmap

src/mesa/drivers/x11/xm_buffer.c

index 7ad67bc34dae15b7001aec578ebda0243b06ada4..821e2a8e082e42198d0655836f2e080192865708 100644 (file)
@@ -229,6 +229,7 @@ alloc_back_buffer(XMesaBuffer b, GLuint width, GLuint height)
       }
 
       b->backxrb->ximage = NULL;
+      b->backxrb->drawable = b->backxrb->pixmap;
    }
 }