xlib: Revert destroying pipe_screen (temporary).
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 18 Aug 2008 23:18:19 +0000 (00:18 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 18 Aug 2008 23:18:55 +0000 (00:18 +0100)
src/gallium/winsys/xlib/xm_api.c

index d2f92a0..7256340 100644 (file)
@@ -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);
 }