From 867dc42ab727b1fd00ed469443dbd36fa1041058 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 10 Aug 2003 03:13:23 +0000 Subject: [PATCH] log more info if glDeleteTextures fails --- stepmania/src/RageDisplay_OGL.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index f6c8e62ff2..38866d9c47 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1035,7 +1035,13 @@ void RageDisplay_OGL::DeleteTexture( unsigned uTexHandle ) glDeleteTextures(1,reinterpret_cast(&uTexID)); GLenum error = glGetError(); - ASSERT( error == GL_NO_ERROR ); + if( error != GL_NO_ERROR ) + { + ostringstream s; + s << "glDeleteTextures(): " << GLToString(error); + LOG->Trace( s.str().c_str() ); + ASSERT(0); + } }