mirror of
https://github.com/bradgrantham/apple2e.git
synced 2024-06-16 08:29:31 +00:00
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)
|
void CheckOpenGL(const char *filename, int line)
|
||||||
{
|
{
|
||||||
int glerr;
|
int glerr;
|
||||||
bool stored_exit_flag = false;
|
static bool stored_exit_flag = false;
|
||||||
bool exit_on_error;
|
static bool exit_on_error;
|
||||||
|
|
||||||
if(!stored_exit_flag) {
|
if(!stored_exit_flag) {
|
||||||
exit_on_error = getenv("EXIT_ON_OPENGL_ERROR") != NULL;
|
exit_on_error = getenv("EXIT_ON_OPENGL_ERROR") != NULL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user