From dc5f68e7099769ea6e51fa1375a1eb3c578a129f Mon Sep 17 00:00:00 2001 From: bjorn Date: Wed, 7 Jul 2021 22:23:32 -0700 Subject: [PATCH] World's worst sync; --- src/modules/graphics/opengl/Graphics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 385d4aec4..7f4c5e0c1 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/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)