mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
GPU/ShaderGen: Enable GL_ARB_shader_storage_buffer_object on <GL4.3
This commit is contained in:
parent
998ec85b16
commit
34d7b752d8
|
@ -105,6 +105,10 @@ void GPU_HW_ShaderGen::WriteHeader(std::stringstream& ss)
|
||||||
|
|
||||||
if (!GLAD_GL_VERSION_3_2)
|
if (!GLAD_GL_VERSION_3_2)
|
||||||
ss << "#extension GL_ARB_uniform_buffer_object : require\n";
|
ss << "#extension GL_ARB_uniform_buffer_object : require\n";
|
||||||
|
|
||||||
|
// Enable SSBOs if it's not required by the version.
|
||||||
|
if (!GLAD_GL_VERSION_4_3 && !GLAD_GL_ES_VERSION_3_1 && GLAD_GL_ARB_shader_storage_buffer_object)
|
||||||
|
ss << "#extension GL_ARB_shader_storage_buffer_object : require\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
DefineMacro(ss, "API_OPENGL", m_render_api == HostDisplay::RenderAPI::OpenGL);
|
DefineMacro(ss, "API_OPENGL", m_render_api == HostDisplay::RenderAPI::OpenGL);
|
||||||
|
|
Loading…
Reference in a new issue