Minor lovr.graphics.clear optimization;
@@ -158,8 +158,10 @@ void lovrGraphicsClear(int color, int depth) {
bits |= GL_DEPTH_BUFFER_BIT;
}
+ if (bits != 0) {
glClear(bits);
}
+}
void lovrGraphicsPresent() {
glfwSwapBuffers(state.window);
