- bug fixes for load saved game (now fixes loading on windows) and corrects memory bug for loading saved games on all platforms.

This commit is contained in:
Mark Vejvoda
2012-04-04 15:36:09 +00:00
parent 6c12bfbec8
commit c1f617481e
7 changed files with 29 additions and 10 deletions

View File

@@ -52,6 +52,12 @@ void checkGlExtension(const char *extensionName);
void inline _assertGl(const char *file, int line, GLenum *forceErrorNumber = NULL) {
GLenum error = (forceErrorNumber != NULL ? *forceErrorNumber : glGetError());
if(error != GL_NO_ERROR) {
#ifdef _DEBUG
if(error == GL_INVALID_ENUM) {
return;
}
#endif
//if(error != GL_INVALID_ENUM) {
const char *errorString= reinterpret_cast<const char*>(gluErrorString(error));
char szBuf[4096]="";