summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-19 00:18:19 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-19 00:18:55 +0100
commitf9e14e0daca3b2f3662a68413c2fa71c05375b8e (patch)
tree14e5c9dfd57ebf2c0c18e0b47ac1ae629839756a /src
parentde3083be7197cccb8dbf223d644ebdb78a8c809d (diff)
xlib: Revert destroying pipe_screen (temporary).
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/xlib/xm_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xm_api.c b/src/gallium/winsys/xlib/xm_api.c
index d2f92a0875..7256340420 100644
--- a/src/gallium/winsys/xlib/xm_api.c
+++ b/src/gallium/winsys/xlib/xm_api.c
@@ -847,7 +847,10 @@ void XMesaDestroyContext( XMesaContext c )
{
struct pipe_screen *screen = c->st->pipe->screen;
st_destroy_context(c->st);
+ /* FIXME: We should destroy the screen here, but if we do so, surfaces may
+ * outlive it, causing segfaults
screen->destroy(screen);
+ */
_mesa_free(c);
}