From: Toni Wilen Date: Sat, 26 Jan 2019 15:07:34 +0000 (+0200) Subject: Error string was not logged. X-Git-Tag: 4200~68 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=dadeb9a1f9af96119a8139fa60eca468bbd682c0;p=francis%2Fwinuae.git Error string was not logged. --- diff --git a/od-win32/win32gfx.cpp b/od-win32/win32gfx.cpp index 33a526cb..76b2d4f8 100644 --- a/od-win32/win32gfx.cpp +++ b/od-win32/win32gfx.cpp @@ -4118,12 +4118,12 @@ retry: } changed_prefs.gfx_api = currprefs.gfx_api = 1; d3d_select(&currprefs); - error_log(_T("Direct3D11 failed to initialize, falling back to Direct3D9.")); + error_log(_T("Direct3D11 failed to initialize ('%s'), falling back to Direct3D9."), err); err = D3D_init(mon->hAmigaWnd, mon->monitor_id, mon->currentmode.native_width, mon->currentmode.native_height, mon->currentmode.current_depth, &mon->currentmode.freq, mon->screen_is_picasso ? 1 : currprefs.gf[ad->picasso_on].gfx_filter_filtermode + 1); } if (err) { D3D_free(0, true); - error_log(_T("Direct3D9 failed to initialize, falling back to DirectDraw.")); + error_log(_T("Direct3D9 failed to initialize ('%s'), falling back to DirectDraw."), err); changed_prefs.gfx_api = currprefs.gfx_api = 0; changed_prefs.gf[ad->picasso_on].gfx_filter = currprefs.gf[ad->picasso_on].gfx_filter = 1; mon->currentmode.current_depth = mon->currentmode.native_depth;