summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-04-26 03:19:54 +0000
committerBrian Paul <[email protected]>2006-04-26 03:19:54 +0000
commitfaee3f0f1e1d3e678aea64cc2c9775f8b7b00562 (patch)
treef3a8e3baf0395994f66ce99d5dc5fd1c668c71e4 /src/mesa/drivers/x11
parent901ac21938e452966fbb89496dd72d9654e28548 (diff)
minor clean-up
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r--src/mesa/drivers/x11/xm_dd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c
index 516b238d6eb..2056366a914 100644
--- a/src/mesa/drivers/x11/xm_dd.c
+++ b/src/mesa/drivers/x11/xm_dd.c
@@ -997,18 +997,18 @@ xmesa_update_state( GLcontext *ctx, GLbitfield new_state )
* renderbuffer span/clear funcs.
*/
if (new_state & (_NEW_COLOR | _NEW_PIXEL | _NEW_BUFFERS)) {
+ XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer);
struct xmesa_renderbuffer *front_xrb, *back_xrb;
- front_xrb = XMESA_BUFFER(ctx->DrawBuffer)->frontxrb;
+ front_xrb = xmbuf->frontxrb;
if (front_xrb) {
xmesa_set_renderbuffer_funcs(front_xrb, xmesa->pixelformat,
xmesa->xm_visual->BitsPerPixel);
front_xrb->clearFunc = clear_pixmap;
}
- back_xrb = XMESA_BUFFER(ctx->DrawBuffer)->backxrb;
+ back_xrb = xmbuf->backxrb;
if (back_xrb) {
- XMesaBuffer xmbuf = XMESA_BUFFER(ctx->DrawBuffer);
xmesa_set_renderbuffer_funcs(back_xrb, xmesa->pixelformat,
xmesa->xm_visual->BitsPerPixel);
if (xmbuf->backxrb->pixmap) {