diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index bfb766ceb..88de1adde 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -506,6 +506,9 @@ static bool computeDispatchBarriers(Shader *shader, GLbitfield &preDispatchBarri if (binding.texture == nullptr) return false; + if (binding.access == GL_READ_ONLY) + continue; + preDispatchBarriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT; postDispatchBarriers |= GL_SHADER_IMAGE_ACCESS_BARRIER_BIT