From 344636d88e3607164af78bf559cf195a9e18d50e Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 8 Oct 2016 17:53:32 +0200 Subject: [PATCH] gsdx ogl: attach input texture before copy Help to ensure with copy the good texture in debugger --- plugins/GSdx/GSDeviceOGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index 124b14db4e..42f9d58553 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -1244,6 +1244,10 @@ void GSDeviceOGL::CopyRect(GSTexture* sTex, GSTexture* dTex, const GSVector4i& r GL_PUSH("CopyRect from %d to %d", sid, did); +#ifdef ENABLE_OGL_DEBUG + PSSetShaderResource(6, sTex); +#endif + glCopyImageSubData( sid, GL_TEXTURE_2D, 0, r.x, r.y, 0, did, GL_TEXTURE_2D,