work around weird error encountered with GeForce MX 440 in the OGL renderer

This commit is contained in:
Mark Cannon
2011-08-31 01:24:09 -04:00
parent c0634d5be8
commit ecb06dc68b
+2 -1
View File
@@ -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];