diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2022-04-25 16:02:14 -0400 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2022-05-04 08:36:15 -0400 |
commit | df09d2a0ba68bf0df1bdd50ac0303c6bd1341aaf (patch) | |
tree | 67bf4b9b280bb3c645eebdeeb346c79ccbd43657 | |
parent | 6447169dee3e2556f0b0e98978363062a70e9635 (diff) |
wgl: always set alpha on kopper windows
Acked-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16153>
-rw-r--r-- | src/gallium/frontends/wgl/stw_st.c | 6 |
1 files changed, 1 insertions, 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 /** |