always pair AssertNoGLError with FlushGLErrors. Otherwise,

AssertNoGLError can trigger for an error that happened a long
time ago, and there's no way of knowing where the real error
was.
This commit is contained in:
Glenn Maynard
2007-03-07 20:08:55 +00:00
parent be579c3aaf
commit 7f18ab6333
+1
View File
@@ -369,6 +369,7 @@ void InitShaders()
// Bind attributes.
if( g_bTextureMatrixShader )
{
FlushGLErrors();
g_iAttribTextureMatrixScale = GLExt.glGetAttribLocationARB( g_bTextureMatrixShader, "TextureMatrixScale" );
if( g_iAttribTextureMatrixScale == -1 )
{