only check EXIT_ON_OPENGL_ERROR on startup
This commit is contained in:
parent
ef922fa355
commit
42109817f2
|
@ -15,8 +15,8 @@
|
|||
void CheckOpenGL(const char *filename, int line)
|
||||
{
|
||||
int glerr;
|
||||
bool stored_exit_flag = false;
|
||||
bool exit_on_error;
|
||||
static bool stored_exit_flag = false;
|
||||
static bool exit_on_error;
|
||||
|
||||
if(!stored_exit_flag) {
|
||||
exit_on_error = getenv("EXIT_ON_OPENGL_ERROR") != NULL;
|
||||
|
|
Loading…
Reference in New Issue