gsdx-ogl: fix debug build for AMD/Intel HW

This commit is contained in:
Gregory Hainaut 2015-05-06 19:08:40 +02:00
parent cc4713d379
commit 97fad356b8
1 changed files with 4 additions and 2 deletions

View File

@ -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;