From 05d495c053acfcc1eb7d907b709086b521072313 Mon Sep 17 00:00:00 2001 From: MelonSpeedruns Date: Sun, 29 May 2022 15:40:57 -0400 Subject: [PATCH] fix empty window on direct3d --- libultraship/libultraship/Lib/Fast3D/gfx_dxgi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libultraship/libultraship/Lib/Fast3D/gfx_dxgi.cpp b/libultraship/libultraship/Lib/Fast3D/gfx_dxgi.cpp index 58218f8f5..922646a1d 100644 --- a/libultraship/libultraship/Lib/Fast3D/gfx_dxgi.cpp +++ b/libultraship/libultraship/Lib/Fast3D/gfx_dxgi.cpp @@ -281,8 +281,10 @@ static LRESULT CALLBACK gfx_dxgi_wnd_proc(HWND h_wnd, UINT message, WPARAM w_par else { return DefWindowProcW(h_wnd, message, w_param, l_param); } - return 0; + default: + return DefWindowProcW(h_wnd, message, w_param, l_param); } + return 0; } void gfx_dxgi_init(const char* game_name, bool start_in_fullscreen) {