Module: Mesa
Branch: main
Commit: 1d0757e2e361f0f5faa6e3e52279940123247795
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d0757e2e361f0f5faa6e3e52279940123247795

Author: Jesse Natalie <[email protected]>
Date:   Fri Sep 17 18:54:02 2021 -0700

egl/wgl: Set YInvert attribute to always true

Acked-by: Daniel Stone <[email protected]>
Acked-by: Mike Blumenkrantz <[email protected]>
Acked-by: Sidney Just <[email protected]>
Acked-by: Jason Ekstrand <[email protected]>
Tested-by: Yonggang Luo <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12964>

---

 src/egl/drivers/wgl/egl_wgl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/wgl/egl_wgl.c b/src/egl/drivers/wgl/egl_wgl.c
index 108f8eb9e4e..a6f938fbcb7 100644
--- a/src/egl/drivers/wgl/egl_wgl.c
+++ b/src/egl/drivers/wgl/egl_wgl.c
@@ -126,6 +126,7 @@ wgl_add_config(_EGLDisplay *disp, const struct 
stw_pixelformat_info *stw_config,
 
    base.MinSwapInterval = 0;
    base.MaxSwapInterval = 1;
+   base.YInvertedNOK = EGL_TRUE;
 
    if (!_eglValidateConfig(&base, EGL_FALSE)) {
       _eglLog(_EGL_DEBUG, "wgl: failed to validate config %d", id);

Reply via email to