From 97fad356b89ff7300517e3e91a127dbeac697953 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 6 May 2015 19:08:40 +0200 Subject: [PATCH] gsdx-ogl: fix debug build for AMD/Intel HW --- plugins/GSdx/GSShaderOGL.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;