From ec15d932cc9f7737623115a6138b90522da8e152 Mon Sep 17 00:00:00 2001 From: darkstar Date: Sun, 19 May 2019 19:02:37 +0200 Subject: [PATCH] Fix undefined variable if USE_LIBPNG is not defined --- src/win/win_d3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_d3d.cpp b/src/win/win_d3d.cpp index 3f94cbc..f3c21ca 100644 --- a/src/win/win_d3d.cpp +++ b/src/win/win_d3d.cpp @@ -622,9 +622,9 @@ d3d_screenshot(const wchar_t *fn) D3DLOCKED_RECT d3dlr; uint8_t *bits, *pixels, *ptr; HRESULT hr; + int i; #if USE_LIBPNG wchar_t temp[512]; - int i; #endif if (! d3dTexture) return;