diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index a93c8ef267..00dcacd66b 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -1595,12 +1595,10 @@ void RageDisplay_OGL::EndConcurrentRendering() g_pWind->EndConcurrentRendering(); } -void RageDisplay_OGL::DeleteTexture( unsigned uTexHandle ) +void RageDisplay_OGL::DeleteTexture( unsigned iTexture ) { - unsigned int uTexID = uTexHandle; - FlushGLErrors(); - glDeleteTextures(1,reinterpret_cast(&uTexID)); + glDeleteTextures( 1, reinterpret_cast(&iTexture) ); AssertNoGLError(); } diff --git a/stepmania/src/RageDisplay_OGL_Helpers.cpp b/stepmania/src/RageDisplay_OGL_Helpers.cpp index c82f7f0f6a..d544b9a95a 100644 --- a/stepmania/src/RageDisplay_OGL_Helpers.cpp +++ b/stepmania/src/RageDisplay_OGL_Helpers.cpp @@ -88,7 +88,7 @@ static bool LoadAllOrNothing( struct func_t *funcs, LowLevelWindow *pWind ) static void GetGLExtensions( set &ext ) { - const char *szBuf = (const char *) glGetString( GL_EXTENSIONS ); + const char *szBuf = (const char *) glGetString( GL_EXTENSIONS ); vector asList; split( szBuf, " ", asList );