From 7ccd79e10954d5dcd89442b6d66fd454457000b8 Mon Sep 17 00:00:00 2001 From: driver1998 Date: Wed, 20 Mar 2019 07:48:13 +0800 Subject: [PATCH] wrote a stub on d3d_take_screenshot for platforms without d3dx (Windows ARM) --- src/win/win_d3d.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/win/win_d3d.cpp b/src/win/win_d3d.cpp index 4f8a6fd4f..0815470a4 100644 --- a/src/win/win_d3d.cpp +++ b/src/win/win_d3d.cpp @@ -637,6 +637,7 @@ d3d_pause(void) void d3d_take_screenshot(wchar_t *fn) { +#ifdef USE_D3DX LPDIRECT3DSURFACE9 d3dSurface = NULL; if (! d3dTexture) return; @@ -646,4 +647,9 @@ d3d_take_screenshot(wchar_t *fn) d3dSurface->Release(); d3dSurface = NULL; +#else + /* TODO: how to take screenshot without d3dx? + just a stub for now */ + pclog("Direct3D: d3d_take_screenshot(%s)\n", fn); +#endif }