]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Error string was not logged.
authorToni Wilen <twilen@winuae.net>
Sat, 26 Jan 2019 15:07:34 +0000 (17:07 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 26 Jan 2019 15:07:34 +0000 (17:07 +0200)
od-win32/win32gfx.cpp

index 33a526cb6f462e9cbc5edc0320924fed2d40f557..76b2d4f898fbe747abcc57753a8795e2017cfd2a 100644 (file)
@@ -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;