Browse Source

Flush batched draws before dispatching compute;

bjorn 4 years ago
parent
commit
9ae529b325
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/graphics/Graphics.cpp

+ 1 - 0
src/modules/graphics/Graphics.cpp

@@ -1093,6 +1093,7 @@ void Graphics::dispatchThreadgroups(Shader* shader, int x, int y, int z)
 		throw love::Exception("Too many threadgroups dispatched.");
 	}
 
+	flushBatchedDraws();
 	shader->attach();
 	dispatch(x, y, z);
 }