mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
OGL: Only specify precision for sampler2DMSArray when it is defined
See https://bugs.dolphin-emu.org/issues/13198
This commit is contained in:
@ -722,6 +722,9 @@ void ProgramShaderCache::CreateHeader()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The sampler2DMSArray keyword is reserved in GLSL ES 3.0 and 3.1, but is available in 3.2.
|
||||||
|
const bool use_multisample_2d_array_precision = v >= GlslEs320;
|
||||||
|
|
||||||
std::string shader_shuffle_string;
|
std::string shader_shuffle_string;
|
||||||
if (g_ogl_config.bSupportsKHRShaderSubgroup)
|
if (g_ogl_config.bSupportsKHRShaderSubgroup)
|
||||||
{
|
{
|
||||||
@ -849,7 +852,7 @@ void ProgramShaderCache::CreateHeader()
|
|||||||
(is_glsles && g_ActiveConfig.backend_info.bSupportsPaletteConversion) ?
|
(is_glsles && g_ActiveConfig.backend_info.bSupportsPaletteConversion) ?
|
||||||
"precision highp usamplerBuffer;" :
|
"precision highp usamplerBuffer;" :
|
||||||
"",
|
"",
|
||||||
v > GlslEs300 ? "precision highp sampler2DMSArray;" : "",
|
use_multisample_2d_array_precision ? "precision highp sampler2DMSArray;" : "",
|
||||||
v >= GlslEs310 ? "precision highp image2DArray;" : "");
|
v >= GlslEs310 ? "precision highp image2DArray;" : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user