Skip to content

Commit

Permalink
Less verbose debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimi309 committed Jan 21, 2024
1 parent 627c559 commit cff3a22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cff3a22

Please sign in to comment.