Skip to content

Commit

Permalink
Remove a missed unnecessary nullptr check.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCallow committed Nov 29, 2023
1 parent 072a4eb commit 97feeae
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ InstancedSampleBase::cleanup()
glDeleteProgram(gnInstancingProg);
glDeleteBuffers(2, quad.gnVbo);
glDeleteVertexArrays(1, &quad.gnVao);
if (uboVS.instance)
delete uboVS.instance;
delete uboVS.instance;
}
assert(GL_NO_ERROR == glGetError());
}
Expand Down

0 comments on commit 97feeae

Please sign in to comment.