Fix undefined variable if USE_LIBPNG is not defined
This commit is contained in:
@@ -622,9 +622,9 @@ d3d_screenshot(const wchar_t *fn)
|
|||||||
D3DLOCKED_RECT d3dlr;
|
D3DLOCKED_RECT d3dlr;
|
||||||
uint8_t *bits, *pixels, *ptr;
|
uint8_t *bits, *pixels, *ptr;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
int i;
|
||||||
#if USE_LIBPNG
|
#if USE_LIBPNG
|
||||||
wchar_t temp[512];
|
wchar_t temp[512];
|
||||||
int i;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (! d3dTexture) return;
|
if (! d3dTexture) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user