From 254f8a4643db2e860faee1168f7f100656abfe6f Mon Sep 17 00:00:00 2001 From: Khangaroo Date: Thu, 8 Aug 2019 15:07:29 -0400 Subject: [PATCH] fix inverted texture dump error message path --- src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 1651815884..0fc8edf927 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -925,7 +925,7 @@ void CachedSurface::DumpTexture(GLuint target_tex, const std::string& dump_path) glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, &decoded_texture[0]); glBindTexture(GL_TEXTURE_2D, 0); Common::FlipRGBA8Texture(decoded_texture, width, height); - if (image_interface->EncodePNG(dump_path, decoded_texture, width, height)) + if (!image_interface->EncodePNG(dump_path, decoded_texture, width, height)) LOG_CRITICAL(Render_OpenGL, "Failed to save decoded texture"); }