Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
OpenGL: disable shader cache when ShaderDebugging is enabled
fixes 6859
  • Loading branch information
degasus committed Dec 9, 2013
1 parent 42619c1 commit 134c89e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoBackends/OGL/Src/ProgramShaderCache.cpp
Expand Up @@ -489,7 +489,7 @@ void ProgramShaderCache::Init(void)
}

// Read our shader cache, only if supported
if (g_ogl_config.bSupportsGLSLCache)
if (g_ogl_config.bSupportsGLSLCache && !g_Config.bEnableShaderDebugging)
{
GLint Supported;
glGetIntegerv(GL_NUM_PROGRAM_BINARY_FORMATS, &Supported);
Expand Down Expand Up @@ -522,7 +522,7 @@ void ProgramShaderCache::Init(void)
void ProgramShaderCache::Shutdown(void)
{
// store all shaders in cache on disk
if (g_ogl_config.bSupportsGLSLCache)
if (g_ogl_config.bSupportsGLSLCache && !g_Config.bEnableShaderDebugging)
{
PCache::iterator iter = pshaders.begin();
for (; iter != pshaders.end(); ++iter)
Expand Down

0 comments on commit 134c89e

Please sign in to comment.