check for errors in render loop
This commit is contained in:
parent
7108f2af7a
commit
4ea226b743
1 changed files with 10 additions and 0 deletions
10
src/render.c
10
src/render.c
|
@ -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);
|
LeaveCriticalSection(&ddraw->cs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue