diff --git a/plugins/GSdx/GSShaderOGL.cpp b/plugins/GSdx/GSShaderOGL.cpp index a511d2df5e..0e37bc86d9 100644 --- a/plugins/GSdx/GSShaderOGL.cpp +++ b/plugins/GSdx/GSShaderOGL.cpp @@ -94,14 +94,16 @@ void GSShaderOGL::PS_ressources(GLuint64 handle[2]) void GSShaderOGL::PS(GLuint s, GLuint sub_count) { +#ifdef _DEBUG + if (true) +#else if (GLState::ps != s) +#endif { m_ps_sub_count = sub_count; -#ifndef _DEBUG // In debug always sets the program. It allow to replace the program in apitrace easily. GLState::ps = s; -#endif GLState::dirty_prog = true; GLState::dirty_subroutine_ps = true; GLState::dirty_ressources = true;