From 7f18ab6333420b227ce15e544dca742c23c3d2ba Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 7 Mar 2007 20:08:55 +0000 Subject: [PATCH] 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. --- stepmania/src/RageDisplay_OGL.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 1a8b1909b9..d9f3df6332 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -369,6 +369,7 @@ void InitShaders() // Bind attributes. if( g_bTextureMatrixShader ) { + FlushGLErrors(); g_iAttribTextureMatrixScale = GLExt.glGetAttribLocationARB( g_bTextureMatrixShader, "TextureMatrixScale" ); if( g_iAttribTextureMatrixScale == -1 ) {