summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/target-helpers
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-10-15 15:57:55 +0100
committerJakob Bornecrantz <[email protected]>2010-10-15 19:13:00 +0100
commit44207ff71b3d53b30cf6c3e52c84ddc5cd44b424 (patch)
tree82e914af9613b3d38b3d827bdacf1a6dbbf88e0e /src/gallium/auxiliary/target-helpers
parentf8f3baa43a3954b7078e5e24b41ae123f398bff8 (diff)
wrapper: Add a way to dewrap a pipe screen without destroying it
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r--src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
index f686da6ac81..f27e34a3002 100644
--- a/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
+++ b/src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h
@@ -26,9 +26,9 @@ sw_screen_wrap(struct pipe_screen *screen)
return sw_screen;
err_winsys:
- sws->destroy(sws);
+ return wrapper_sw_winsys_dewrap_pipe_screen(sws);
err:
- return screen;
+ return screen;
}
#endif