Mesa (staging/22.1): wgl: always set alpha on kopper windows

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 4 12:38:04 UTC 2022


Module: Mesa
Branch: staging/22.1
Commit: df09d2a0ba68bf0df1bdd50ac0303c6bd1341aaf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=df09d2a0ba68bf0df1bdd50ac0303c6bd1341aaf

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Apr 25 16:02:14 2022 -0400

wgl: always set alpha on kopper windows

Acked-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16153>

---

 src/gallium/frontends/wgl/stw_st.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/gallium/frontends/wgl/stw_st.c b/src/gallium/frontends/wgl/stw_st.c
index 9f30f51bb1b..3ff97338eb3 100644
--- a/src/gallium/frontends/wgl/stw_st.c
+++ b/src/gallium/frontends/wgl/stw_st.c
@@ -134,11 +134,7 @@ stw_st_fill_private_loader_data(struct stw_st_framebuffer *stwfb, struct kopper_
    out->win32.flags = 0;
    out->win32.hinstance = GetModuleHandle(NULL);
    out->win32.hwnd = stwfb->fb->hWnd;
-   BYTE alpha;
-   if (GetLayeredWindowAttributes(stwfb->fb->hWnd, NULL, &alpha, NULL))
-      out->has_alpha = alpha != 255;
-   else
-      out->has_alpha = 0;
+   out->has_alpha = true;
 }
 #endif 
 /**



More information about the mesa-commit mailing list