summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_dd.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-26 00:38:00 +0000
committerBrian Paul <[email protected]>2005-09-26 00:38:00 +0000
commitad271b8c98021dc82c0714d768a6642aee10794f (patch)
tree87e567ed70ee9c4f7e558f6bef5868999d0664fb /src/mesa/drivers/x11/xm_dd.c
parent4aeaff2ae7f4a4b209e0d0ee2081b592951b7054 (diff)
Added XMesaDrawable to xmesa_renderbuffer. Use it in a few places instead
of the XMesaPixmap field to avoid some X server-side issues with casting.
Diffstat (limited to 'src/mesa/drivers/x11/xm_dd.c')
-rw-r--r--src/mesa/drivers/x11/xm_dd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c
index 3e7174ab928..e26b54f8e41 100644
--- a/src/mesa/drivers/x11/xm_dd.c
+++ b/src/mesa/drivers/x11/xm_dd.c
@@ -105,8 +105,8 @@ get_buffer_size( GLframebuffer *buffer, GLuint *width, GLuint *height )
unsigned int winwidth, winheight;
#ifdef XFree86Server
/* XFree86 GLX renderer */
- winwidth = MIN2(xmBuffer->frontxrb->pixmap->width, MAX_WIDTH);
- winheight = MIN2(xmBuffer->frontxrb->pixmap->height, MAX_HEIGHT);
+ winwidth = MIN2(xmBuffer->frontxrb->drawable->width, MAX_WIDTH);
+ winheight = MIN2(xmBuffer->frontxrb->drawable->height, MAX_HEIGHT);
#else
Window root;
int winx, winy;