Skip to content

Commit 499fe63

Browse files
committed
only enable WS_EX_NOREDIRECTIONBITMAP on non-gl renderers - need either this, or we'll need to switch win32/gl to directcomposition (?)
1 parent 4c32238 commit 499fe63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/os/gfx/win32/os_gfx_win32.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,11 @@ os_window_open(Rng2F32 rect, OS_WindowFlags flags, String8 title)
10661066
Temp scratch = scratch_begin(0, 0);
10671067
String16 title16 = str16_from_8(scratch.arena, title);
10681068
os_w32_new_window_custom_border = custom_border;
1069-
hwnd = CreateWindowExW(WS_EX_APPWINDOW | WS_EX_NOREDIRECTIONBITMAP,
1069+
DWORD style_flags = WS_EX_APPWINDOW;
1070+
#if defined(R_BACKEND) && R_BACKEND != R_BACKEND_OPENGL
1071+
style_flags |= WS_EX_NOREDIRECTIONBITMAP;
1072+
#endif
1073+
hwnd = CreateWindowExW(style_flags,
10701074
L"graphical-window",
10711075
(WCHAR*)title16.str,
10721076
WS_OVERLAPPEDWINDOW | WS_SIZEBOX,

0 commit comments

Comments
 (0)