diff options
author | Brian Paul <[email protected]> | 2012-01-16 12:28:47 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-24 14:12:27 -0700 |
commit | b0f0d7a8118401b209c674804255b5fd9e8c94c0 (patch) | |
tree | b433cd5ca7450b373e0cf34edafe2cc6caabced0 /src/mesa/drivers/x11/xm_api.c | |
parent | 59a5b5a193d5d9c5776aa586b34657b6e315479d (diff) |
xlib: remove xm_span.c and related code
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index d0374ec121a..0f41218e63e 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -600,8 +600,6 @@ initialize_visual_and_buffer(XMesaVisual v, XMesaBuffer b, } if (b && window) { - char *data; - /* Do window-specific initializations */ /* these should have been set in create_xmesa_buffer */ @@ -633,19 +631,6 @@ initialize_visual_and_buffer(XMesaVisual v, XMesaBuffer b, GCGraphicsExposures, &gcvalues); } XMesaSetFunction( v->display, b->swapgc, GXcopy ); - - /* Initialize the row buffer XImage for use in write_color_span() */ - data = (char*) MALLOC(MAX_WIDTH*4); - b->rowimage = XCreateImage( v->display, - v->visinfo->visual, - v->visinfo->depth, - ZPixmap, 0, /*format, offset*/ - data, /*data*/ - MAX_WIDTH, 1, /*width, height*/ - 32, /*bitmap_pad*/ - 0 /*bytes_per_line*/ ); - if (!b->rowimage) - return GL_FALSE; } return GL_TRUE; |