diff --git a/src/modules/graphics/opengl/Shader.cpp b/src/modules/graphics/opengl/Shader.cpp index d68d95563..7abd4e2d1 100644 --- a/src/modules/graphics/opengl/Shader.cpp +++ b/src/modules/graphics/opengl/Shader.cpp @@ -160,6 +160,13 @@ void Shader::mapActiveUniforms() } else if (u.baseType == UNIFORM_STORAGETEXTURE) { + const auto reflectionit = validationReflection.storageTextures.find(u.name); + if (reflectionit != validationReflection.storageTextures.end()) + { + u.storageTextureFormat = reflectionit->second.format; + u.access = reflectionit->second.access; + } + StorageTextureBinding binding = {}; binding.gltexture = gl.getDefaultTexture(u.textureType, u.dataBaseType); binding.type = u.textureType;