summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/glx
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-03-09 11:39:40 +0000
committerKeith Whitwell <[email protected]>2010-03-09 11:39:40 +0000
commitd5bf9c0a5e51d160e7037297faf7657a0e2c6360 (patch)
treea4292c36c88e98033dadf0f41df83c5a21076123 /src/gallium/state_trackers/glx
parent0c96690a5b6e1c2d114e7ec5f1e9d60a4ff2a330 (diff)
ws/xlib: manage the GC internally
No need for the user of this winsys to supply/manage the x11 gc for us.
Diffstat (limited to 'src/gallium/state_trackers/glx')
-rw-r--r--src/gallium/state_trackers/glx/xlib/xm_api.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c
index d8aa59b3b7c..cf9a3992091 100644
--- a/src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/src/gallium/state_trackers/glx/xlib/xm_api.c
@@ -446,8 +446,6 @@ xmesa_free_buffer(XMesaBuffer buffer)
/* Unreference. If count = zero we'll really delete the buffer */
_mesa_reference_framebuffer(&fb, NULL);
- XFreeGC(b->xm_visual->display, b->ws.gc);
-
free(buffer);
return;
@@ -524,16 +522,6 @@ initialize_visual_and_buffer(XMesaVisual v, XMesaBuffer b,
printf("X/Mesa bits per pixel = %d\n", v->BitsPerPixel);
}
- if (b && window) {
- /* these should have been set in create_xmesa_buffer */
- ASSERT(b->ws.drawable == window);
-
-
- /* X11 graphics context */
- b->ws.gc = XCreateGC( v->display, window, 0, NULL );
- XSetFunction( v->display, b->ws.gc, GXcopy );
- }
-
return GL_TRUE;
}