From cff3a22c7af2cd6fb63d4a6d080e8146377be330 Mon Sep 17 00:00:00 2001 From: dimi309 Date: Sun, 21 Jan 2024 08:24:57 +0100 Subject: [PATCH] Less verbose debug output. --- src/Renderer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Renderer.cpp b/src/Renderer.cpp index 13510c2d..5bde8b4a 100644 --- a/src/Renderer.cpp +++ b/src/Renderer.cpp @@ -1181,8 +1181,9 @@ namespace small3d { GLint bufSize = 0; glBindBuffer(GL_ARRAY_BUFFER, model->positionBufferObjectId); glGetBufferParameteriv(GL_ARRAY_BUFFER, GL_BUFFER_SIZE, &bufSize); - - checkForOpenGLErrors("checking GPU for model (this is normal)", false); + // Flush invalid operation error (this is normal when the model has not + // been loaded into the GPU). + while(glGetError() == GL_INVALID_OPERATION); bool alreadyInGPU = bufSize > 0;