mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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>
This commit is contained in:
parent
5a62d00480
commit
70f5360037
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue