diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 1a09dbe9..7a15e829 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -3718,8 +3718,7 @@ void Graphics::draw_screenshot_border(void) int width = 0; int height = 0; - int result = query_texture(gameTexture, NULL, NULL, &width, &height); - if (result != 0) + if (!query_texture(gameTexture, NULL, NULL, &width, &height)) { return; }