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:
parent
062f622ecd
commit
6c225b8730
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user