Browse Source

World's worst sync;

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

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

@@ -472,6 +472,7 @@ void Graphics::setActive(bool enable)
 void Graphics::dispatch(int x, int y, int z)
 {
 	glDispatchCompute(x, y, z);
+	glMemoryBarrier(GL_ALL_BARRIER_BITS); // TODO: Improve synchronization
 }
 
 void Graphics::draw(const DrawCommand &cmd)