Skip to content

Commit 67e2a9e

Browse files
committed
(D3D8) Update warning message
1 parent 4d16b03 commit 67e2a9e

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

gfx/drivers/d3d8.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ static bool d3d8_initialize_symbols(enum gfx_ctx_api api)
224224
RARCH_ERR("[D3D8] Failed to load d3d8.dll: %s\n",
225225
dylib_error() ? dylib_error() : "(no error reported)");
226226
RARCH_ERR("[D3D8] The legacy DirectX 8 runtime is not present "
227-
"on this system. Install it (e.g. via the legacy DirectX "
228-
"End-User Runtimes from Microsoft) or pick a different "
227+
"on this system. Drop a matching d3d8.dll and d3d9.dll"
228+
"(e.g. from DXVK) next to retroarch.exe, or pick a different "
229229
"video driver.\n");
230230
return false;
231231
}
@@ -1404,17 +1404,20 @@ static void d3d8_set_nonblock_state(void *data, bool state,
14041404
bool adaptive_vsync_enabled,
14051405
unsigned swap_interval)
14061406
{
1407-
int interval = 0;
1408-
d3d8_video_t *d3d = (d3d8_video_t*)data;
1407+
#ifdef _XBOX
1408+
int interval = 0;
1409+
#endif
1410+
d3d8_video_t *d3d = (d3d8_video_t*)data;
14091411

14101412
if (!d3d)
14111413
return;
14121414

1413-
if (!state)
1414-
interval = 1;
14151415
d3d->video_info.vsync = !state;
14161416

14171417
#ifdef _XBOX
1418+
if (!state)
1419+
interval = 1;
1420+
14181421
IDirect3DDevice8_SetRenderState(d3d->dev,
14191422
D3D8_PRESENTATIONINTERVAL,
14201423
interval ?

0 commit comments

Comments
 (0)