mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-27 06:29:19 +00:00
Avoid SIGSEGV if glCheckFramebufferStatus not available
This commit is contained in:
parent
13bf93e5ca
commit
bdbe544c3b
@ -242,11 +242,13 @@ static void glvideo_init(void) {
|
||||
// Check for errors to make sure all of our setup went ok
|
||||
GL_ERRLOG("finished initialization");
|
||||
|
||||
if (glCheckFramebufferStatus != NULL) {
|
||||
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
|
||||
if (status != GL_FRAMEBUFFER_COMPLETE) {
|
||||
ERRQUIT("framebuffer status: %04X", status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void glvideo_shutdown(void) {
|
||||
LOG("BEGIN ...");
|
||||
|
Loading…
Reference in New Issue
Block a user