GPU/HW: Add UBO extension require if !GL3.2

Might fix errors on Sandy Bridge.
This commit is contained in:
Connor McLaughlin 2020-05-25 18:37:28 +10:00
parent 13df6c3e15
commit e0d9bbced4

View file

@ -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_explicit_uniform_location : require\n";
ss << "#extension GL_ARB_shading_language_420pack : 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); DefineMacro(ss, "API_OPENGL", m_render_api == HostDisplay::RenderAPI::OpenGL);