diff --git a/src/RageDisplay_Legacy.cpp b/src/RageDisplay_Legacy.cpp index b9ae42c014..e0e6a899bd 100644 --- a/src/RageDisplay_Legacy.cpp +++ b/src/RageDisplay_Legacy.cpp @@ -272,7 +272,8 @@ RString GetInfoLog( GLhandleARB h ) { GLint iLength; glGetObjectParameterivARB( h, GL_OBJECT_INFO_LOG_LENGTH_ARB, &iLength ); - if (!iLength) + + if( iLength <= 0 ) return RString(); GLcharARB *pInfoLog = new GLcharARB[iLength];