1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

experimental glClear - maybe it's enough to clear the buffers only once initially?

This commit is contained in:
FunkyFr3sh 2018-12-10 06:46:57 +01:00
parent f41b2fc177
commit fea88beb38

View File

@ -646,6 +646,8 @@ static void Render()
static int errorCheckCount = 0; static int errorCheckCount = 0;
if (errorCheckCount < 20) if (errorCheckCount < 20)
{ {
glClear(GL_COLOR_BUFFER_BIT);
errorCheckCount++; errorCheckCount++;
if (glGetError() != GL_NO_ERROR) if (glGetError() != GL_NO_ERROR)