mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- 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:
@@ -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]="";
|
||||
|
Reference in New Issue
Block a user