Module: Mesa Branch: staging/22.1 Commit: df09d2a0ba68bf0df1bdd50ac0303c6bd1341aaf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=df09d2a0ba68bf0df1bdd50ac0303c6bd1341aaf
Author: Mike Blumenkrantz <[email protected]> Date: Mon Apr 25 16:02:14 2022 -0400 wgl: always set alpha on kopper windows Acked-by: Jesse Natalie <[email protected]> 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 /**
