From 44207ff71b3d53b30cf6c3e52c84ddc5cd44b424 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 15 Oct 2010 15:57:55 +0100 Subject: wrapper: Add a way to dewrap a pipe screen without destroying it --- src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/auxiliary/target-helpers/inline_wrapper_sw_helper.h') 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 f686da6ac8..f27e34a300 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 -- cgit v1.2.3