From 6c225b8730422f43399d70bb4192aca7852b6d87 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Thu, 5 Aug 2021 17:19:27 +0200 Subject: [PATCH] ignore framebuffer errors --- src/render_ogl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/render_ogl.c b/src/render_ogl.c index 3af28c0..b25801c 100644 --- a/src/render_ogl.c +++ b/src/render_ogl.c @@ -654,11 +654,13 @@ static void ogl_render() static int error_check_count = 0; - if (error_check_count < 20) + if (error_check_count < 10) { error_check_count++; - if (glGetError() != GL_NO_ERROR) + GLenum err = glGetError(); + + if (err != GL_NO_ERROR && err != GL_INVALID_FRAMEBUFFER_OPERATION) g_ogl.use_opengl = FALSE; }