From 3cc42c1bf84cd92174d13c2e38d46e17cd1a65ce Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 5 Feb 2020 16:23:17 +0300 Subject: [PATCH] gl: Fix broken image transfer operations --- rpcs3/Emu/RSX/GL/GLHelpers.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLHelpers.cpp b/rpcs3/Emu/RSX/GL/GLHelpers.cpp index 6123d58592..80d68e6a79 100644 --- a/rpcs3/Emu/RSX/GL/GLHelpers.cpp +++ b/rpcs3/Emu/RSX/GL/GLHelpers.cpp @@ -396,15 +396,15 @@ namespace gl // Final dimensions are a match if (xfer_info.src_is_typeless || xfer_info.dst_is_typeless) { - const coord3i src_region = { { src_rect.x1, src_rect.y1, 0 }, { src_w, src_rect.height(), 1 } }; - const coord3i dst_region = { { dst_rect.x1, dst_rect.y1, 0 }, { src_w, src_rect.height(), 1 } }; + const coord3i src_region = { { src_rect.x1, src_rect.y1, 0 }, { src_rect.width(), src_rect.height(), 1 } }; + const coord3i dst_region = { { dst_rect.x1, dst_rect.y1, 0 }, { dst_rect.width(), dst_rect.height(), 1 } }; gl::copy_typeless(dst, src, dst_region, src_region); } else { - glCopyImageSubData(src->id(), dst->id(), 0, src_rect.x1, src_rect.y1, 0, + glCopyImageSubData(src->id(), GL_TEXTURE_2D, 0, src_rect.x1, src_rect.y1, 0, dst->id(), GL_TEXTURE_2D, 0, dst_rect.x1, dst_rect.y1, 0, - src_w, src_rect.height(), 1); + src_rect.width(), src_rect.height(), 1); } return;