From 9aff548ff4f6c2d52bfca972050324e0eba043ec Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 22 Jun 2021 19:37:18 +0200 Subject: [PATCH] libgl-gdi: add missing include Without this, I get the following error if I try to compile Zink without any other drivers: src/gallium/targets/libgl-gdi/libgl_gdi.c(210): error C2037: left of 'flush_frontbuffer' specifies undefined struct/union 'pipe_screen' Fixes: fdfe4a4d307 ("libgl-gdi: add zink support") Reviewed-by: Jesse Natalie Acked-by: Mike Blumenkrantz Part-of: --- src/gallium/targets/libgl-gdi/libgl_gdi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/libgl-gdi/libgl_gdi.c b/src/gallium/targets/libgl-gdi/libgl_gdi.c index 119612ba9c5..12ec8ffd744 100644 --- a/src/gallium/targets/libgl-gdi/libgl_gdi.c +++ b/src/gallium/targets/libgl-gdi/libgl_gdi.c @@ -41,6 +41,7 @@ #include "stw_winsys.h" #include "stw_device.h" #include "gdi/gdi_sw_winsys.h" +#include "pipe/p_screen.h" #include "pipe/p_context.h" #ifdef GALLIUM_SOFTPIPE