From e0d9bbced4eccee98b76808fe3e3d67aa5fa485a Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 25 May 2020 18:37:28 +1000 Subject: [PATCH] GPU/HW: Add UBO extension require if !GL3.2 Might fix errors on Sandy Bridge. --- src/core/gpu_hw_shadergen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/gpu_hw_shadergen.cpp b/src/core/gpu_hw_shadergen.cpp index f10aebd5c..488496a5d 100644 --- a/src/core/gpu_hw_shadergen.cpp +++ b/src/core/gpu_hw_shadergen.cpp @@ -99,6 +99,9 @@ void GPU_HW_ShaderGen::WriteHeader(std::stringstream& ss) ss << "#extension GL_ARB_explicit_uniform_location : require\n"; ss << "#extension GL_ARB_shading_language_420pack : require\n"; } + + if (!GLAD_GL_VERSION_3_2) + ss << "#extension GL_ARB_uniform_buffer_object : require\n"; } DefineMacro(ss, "API_OPENGL", m_render_api == HostDisplay::RenderAPI::OpenGL);