From 27a3d44b16306c8eb376f41d70659ae3bcd64a60 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 28 Mar 2018 21:13:54 -0400 Subject: [PATCH] gl_rasterizer: Fix incorrect comparison against src_surface in AccelerateTextureCopy() This should actually be comparing the validity of the destination surface. --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 612540d258..6965f244c6 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -1093,7 +1093,7 @@ bool RasterizerOpenGL::AccelerateTextureCopy(const GPU::Regs::DisplayTransferCon Surface dst_surface; std::tie(dst_surface, dst_rect) = res_cache.GetSurfaceSubRect(dst_params, ScaleMatch::Upscale, load_gap); - if (src_surface == nullptr) { + if (dst_surface == nullptr) { return false; }