#include "AssertGL.h" #include #ifdef _WIN32 #include #endif #include #include void gl_assert(const char * zFile, unsigned int nLine) { GLenum nErrorCode = glGetError(); if (nErrorCode != GL_NO_ERROR) { const GLubyte * zErrorString = gluErrorString(nErrorCode); std::cerr << "Assertion failed (" <