From f7f4818de47b78c129498acdd327c580aa023937 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 13 Nov 2019 22:48:14 +1000 Subject: [PATCH] GPU/HW: Explicitly specify std140 layout for UBOs --- src/core/gpu_hw_shadergen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw_shadergen.cpp b/src/core/gpu_hw_shadergen.cpp index 60306be6c..d98c441c0 100644 --- a/src/core/gpu_hw_shadergen.cpp +++ b/src/core/gpu_hw_shadergen.cpp @@ -131,7 +131,7 @@ float4 RGBA5551ToRGBA8(uint v) void GPU_HW_ShaderGen::DeclareUniformBuffer(std::stringstream& ss, const std::initializer_list& members) { if (m_glsl) - ss << "uniform UBOBlock\n"; + ss << "layout(std140) uniform UBOBlock\n"; else ss << "cbuffer UBOBlock : register(b0)\n";