summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan White <jwhite@tungstengraphics.com>2008-07-21 15:34:38 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-21 15:34:38 -0600
commit467e6526a8210e90cf47362b1b4b87b7d49e009d (patch)
tree8bf3863ebd41a5bf355534a44810900b16f3f457 /src
parent7e8f79e39dfb4ba0072e9d34e7fba958e3710f5b (diff)
gallium: Temporary workaround for mismatched pipe create and pipe destroy
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 8b30e35684..00447fff08 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -217,7 +217,10 @@ void st_destroy_context( struct st_context *st )
cso_destroy_context(cso);
+ /* Temporary workaround for mismatched pipe create and pipe destroy */
+#if !defined(PIPE_SUBSYSTEM_WINDOWS_USER) && !defined(PIPE_SUBSYSTEM_WINDOWS_CE)
pipe->destroy( pipe );
+#endif
free(ctx);
}