log more info if glDeleteTextures fails

This commit is contained in:
Chris Danford
2003-08-10 03:13:23 +00:00
parent d2416b3826
commit 867dc42ab7
+7 -1
View File
@@ -1035,7 +1035,13 @@ void RageDisplay_OGL::DeleteTexture( unsigned uTexHandle )
glDeleteTextures(1,reinterpret_cast<GLuint*>(&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);
}
}