check for errors in render loop

This commit is contained in:
FunkyFr3sh 2018-06-26 14:09:47 +02:00
parent 7108f2af7a
commit 4ea226b743

View file

@ -499,6 +499,16 @@ DWORD WINAPI render_main(void)
}
}
static int errorCheckCount = 0;
if (ddraw->autorenderer && errorCheckCount < 3)
{
errorCheckCount++;
glFinish();
if (glGetError() != GL_NO_ERROR)
useOpenGL = FALSE;
}
}
LeaveCriticalSection(&ddraw->cs);