From 16fbc93e42261680aa60e48ff8c7b9ccc6f40972 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 7 Aug 2018 14:56:55 +0200 Subject: [PATCH] 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 --- src/vrend_shader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index 59e3b48..367135e 100644 --- a/src/vrend_shader.c +++ b/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++) {