From 499fe635d6ee1f7e90e98b107b6de926c2ec6fc0 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 3 Nov 2025 11:29:04 -0800 Subject: [PATCH] only enable WS_EX_NOREDIRECTIONBITMAP on non-gl renderers - need either this, or we'll need to switch win32/gl to directcomposition (?) --- src/os/gfx/win32/os_gfx_win32.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/os/gfx/win32/os_gfx_win32.c b/src/os/gfx/win32/os_gfx_win32.c index 53f8edb5..4d7f7254 100644 --- a/src/os/gfx/win32/os_gfx_win32.c +++ b/src/os/gfx/win32/os_gfx_win32.c @@ -1066,7 +1066,11 @@ os_window_open(Rng2F32 rect, OS_WindowFlags flags, String8 title) Temp scratch = scratch_begin(0, 0); String16 title16 = str16_from_8(scratch.arena, title); os_w32_new_window_custom_border = custom_border; - hwnd = CreateWindowExW(WS_EX_APPWINDOW | WS_EX_NOREDIRECTIONBITMAP, + DWORD style_flags = WS_EX_APPWINDOW; +#if defined(R_BACKEND) && R_BACKEND != R_BACKEND_OPENGL + style_flags |= WS_EX_NOREDIRECTIONBITMAP; +#endif + hwnd = CreateWindowExW(style_flags, L"graphical-window", (WCHAR*)title16.str, WS_OVERLAPPEDWINDOW | WS_SIZEBOX,