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