diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-08-14 10:47:39 +0100 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-08-14 11:01:42 +0100 |
commit | 969ff9e9bf3dfae08d087bbc47ce43f17d107bfc (patch) | |
tree | d08908389fbd6f87cf8c9a38bc2846c4e1b199c8 /src/gallium/winsys/xlib/xm_api.c | |
parent | 3c90678ea69ee8be832e16d42a1b8049a49535e3 (diff) |
xlib: Use trace usage.
Diffstat (limited to 'src/gallium/winsys/xlib/xm_api.c')
-rw-r--r-- | src/gallium/winsys/xlib/xm_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/winsys/xlib/xm_api.c b/src/gallium/winsys/xlib/xm_api.c index 4e5441a13d..d2f92a0875 100644 --- a/src/gallium/winsys/xlib/xm_api.c +++ b/src/gallium/winsys/xlib/xm_api.c @@ -67,6 +67,7 @@ #include "state_tracker/st_public.h" #include "state_tracker/st_context.h" #include "pipe/p_defines.h" +#include "pipe/p_screen.h" #include "pipe/p_context.h" #include "xm_winsys_aub.h" @@ -833,7 +834,7 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) fail: if (c->st) st_destroy_context(c->st); - if (pipe) + else if (pipe) pipe->destroy(pipe); FREE(c); return NULL; @@ -844,7 +845,9 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) PUBLIC void XMesaDestroyContext( XMesaContext c ) { + struct pipe_screen *screen = c->st->pipe->screen; st_destroy_context(c->st); + screen->destroy(screen); _mesa_free(c); } |