From ecb06dc68b9b769ebb724bddc2dab7933d0d12ec Mon Sep 17 00:00:00 2001 From: Mark Cannon Date: Wed, 31 Aug 2011 01:24:09 -0400 Subject: [PATCH] work around weird error encountered with GeForce MX 440 in the OGL renderer --- src/RageDisplay_Legacy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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];