Don't skip GPU submits if there's nothing to do;
It can still be useful to do an empty submit
It's good to still do validation of the passes
@@ -829,9 +829,7 @@ void lovrGraphicsSetBackgroundColor(float background[4]) {
}
void lovrGraphicsSubmit(Pass** passes, uint32_t count) {
- if (!state.active) {
- return;
- }
+ beginFrame();
uint32_t total = count + 1;
gpu_stream** streams = tempAlloc(total * sizeof(gpu_stream*));
