mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-11-15 16:07:09 +00:00
Avoid calling glGetError() on thread without OpenGL context
This commit is contained in:
parent
98e5c883f9
commit
ae75ce2798
@ -93,7 +93,7 @@
|
||||
// 2015/04/01 ... early calls to glGetError()--before a context exists--causes segfaults on MacOS X
|
||||
extern bool safe_to_do_opengl_logging;
|
||||
static inline GLenum safeGLGetError(void) {
|
||||
if (safe_to_do_opengl_logging) {
|
||||
if (safe_to_do_opengl_logging && video_isRenderThread()) {
|
||||
return glGetError();
|
||||
}
|
||||
return (GLenum)0;
|
||||
|
Loading…
Reference in New Issue
Block a user