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:
@@ -369,6 +369,7 @@ void InitShaders()
|
||||
// Bind attributes.
|
||||
if( g_bTextureMatrixShader )
|
||||
{
|
||||
FlushGLErrors();
|
||||
g_iAttribTextureMatrixScale = GLExt.glGetAttribLocationARB( g_bTextureMatrixShader, "TextureMatrixScale" );
|
||||
if( g_iAttribTextureMatrixScale == -1 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user