From 6401eefb26526ad0a04405cea2cd2c6e966a8719 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 13 Jul 2016 00:28:40 +0300 Subject: [PATCH] gl: reset texture scaling factor during bind reset vertex textures as well --- rpcs3/Emu/RSX/GL/GLGSRender.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index 9a1a4795b8..4649ae7749 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -425,6 +425,11 @@ void GLGSRender::end() glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f); } + else + { + //This shader may have been re-used with a different texture config. Have to reset this + glProgramUniform4f(m_program->id(), location, 1.f, 1.f, 1.f, 1.f); + } } } } @@ -458,6 +463,11 @@ void GLGSRender::end() glProgramUniform4f(m_program->id(), location, 1.f / width, 1.f / height, 1.f / depth, 1.0f); } + else + { + //This shader may have been re-used with a different texture config. Have to reset this + glProgramUniform4f(m_program->id(), location, 1.f, 1.f, 1.f, 1.f); + } } } }