Module: Mesa Branch: main Commit: d3753aa336b7968ad193e37ae2320db83b0cf50f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3753aa336b7968ad193e37ae2320db83b0cf50f
Author: Giancarlo Devich <[email protected]> Date: Thu Dec 1 11:57:04 2022 -0800 wgl: Fix build break when LLVMPIPE and SOFTPIPE are both off Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20114> --- src/gallium/targets/wgl/wgl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/targets/wgl/wgl.c b/src/gallium/targets/wgl/wgl.c index 89e49a1d87b..da44e146488 100644 --- a/src/gallium/targets/wgl/wgl.c +++ b/src/gallium/targets/wgl/wgl.c @@ -170,8 +170,10 @@ wgl_present(struct pipe_screen *screen, * other structs such as this stw_winsys as well... */ +#if defined(GALLIUM_LLVMPIPE) || defined(GALLIUM_SOFTPIPE) struct sw_winsys *winsys = NULL; struct sw_displaytarget *dt = NULL; +#endif #ifdef GALLIUM_LLVMPIPE if (use_llvmpipe) {
