st/mesa: fix Sanctuary and Tropics by disabling ARB_gpu_shader5 for them

They use the "sample" keyword as a variable name.

Cc: 19.2 19.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Marek Olšák
2019-11-11 17:04:15 -05:00
parent 34f32a6d66
commit e00791c552
6 changed files with 12 additions and 1 deletions

View File

@@ -1095,7 +1095,7 @@ void st_init_extensions(struct pipe_screen *screen,
if (api == API_OPENGLES2 && ESSLVersion >= 320)
extensions->ARB_gpu_shader5 = GL_TRUE;
if (GLSLVersion >= 400)
if (GLSLVersion >= 400 && !options->disable_arb_gpu_shader5)
extensions->ARB_gpu_shader5 = GL_TRUE;
if (GLSLVersion >= 410)
extensions->ARB_shader_precision = GL_TRUE;