Only check shader compilation status in debug or with DEBUG_GLSL defined. invalidate range on bindbufferrange since we don't care about what is in the range. Both give a performance boost for me.
This commit is contained in:
1 parent
3a52b37c3b
commit
4fadb65259
3 files changed
+5
-4
No files matched your search
@@ -133,7 +133,7 @@ bool PixelShaderCache::CompilePixelShader(FRAGMENTSHADER& ps, const char* pstrpr
|
||||
|
||||
glShaderSource(result, 1, &pstrprogram, NULL);
|
||||
glCompileShader(result);
|
||||
|
||||
#if defined(_DEBUG) || defined(DEBUGFAST) || defined(DEBUG_GLSL)
|
||||
GLsizei length = 0;
|
||||
glGetShaderiv(result, GL_INFO_LOG_LENGTH, &length);
|
||||
if (length > 1)
|
||||
@@ -161,7 +161,7 @@ bool PixelShaderCache::CompilePixelShader(FRAGMENTSHADER& ps, const char* pstrpr
|
||||
glDeleteShader(result);
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
(void)GL_REPORT_ERROR();
|
||||
ps.glprogid = result;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user