1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

ignore framebuffer errors

This commit is contained in:
FunkyFr3sh 2021-08-05 17:19:27 +02:00
parent 062f622ecd
commit 6c225b8730

View File

@ -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;
}