shader: don't emit ARB_gpu_shader5 if GLSL version is 320 es

The extension is already included in this GLSL version and adding it results
in compilation failures.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent aa0f6a7fa9
commit 16fbc93e42
  1. 3
      src/vrend_shader.c

@ -5116,7 +5116,8 @@ bool vrend_patch_vertex_shader_interpolants(struct vrend_shader_cfg *cfg, char *
if (!fs_info->interpinfo)
return true;
if (fs_info->has_sample_input)
if (fs_info->has_sample_input &&
(!cfg->use_gles && (cfg->glsl_version >= 320)))
require_gpu_shader5(program);
for (i = 0; i < fs_info->num_interps; i++) {

Loading…
Cancel
Save