gl: Require GLSL 450 when using barycentric extension

This commit is contained in:
kd-11 2022-12-11 02:12:52 +03:00 committed by kd-11
parent 941ecc76a1
commit 26021e11f7

View file

@ -46,6 +46,7 @@ void GLFragmentDecompilerThread::insertHeader(std::stringstream & OS)
if (m_prog.ctrl & RSX_SHADER_CONTROL_ATTRIBUTE_INTERPOLATION)
{
gl_version = std::max(gl_version, 450);
required_extensions.push_back("GL_NV_fragment_shader_barycentric");
}