From fea88beb381a5ad69e34b2791237855e7f44f62a Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Mon, 10 Dec 2018 06:46:57 +0100 Subject: [PATCH] experimental glClear - maybe it's enough to clear the buffers only once initially? --- src/render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render.c b/src/render.c index f166741..cfb40eb 100644 --- a/src/render.c +++ b/src/render.c @@ -646,6 +646,8 @@ static void Render() static int errorCheckCount = 0; if (errorCheckCount < 20) { + glClear(GL_COLOR_BUFFER_BIT); + errorCheckCount++; if (glGetError() != GL_NO_ERROR)