From 1a27e447f99d6947b993339e13cf0e4739500cd4 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 13 Mar 2019 16:37:40 +0100 Subject: [PATCH] vrend: Lie a bit more about the GLSL support level on GLES Apart from fp64 about which we lie aynway the features required by GLSL level 4.10 on top of 4.00 can be supported by GLES, so report this higher feature level and it will give us GL 4.1 in the guest. Signed-off-by: Gert Wollny Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index e25f647..abf22a8 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -8221,7 +8221,7 @@ static void vrend_fill_caps_glsl_version(int gl_ver, int gles_ver, * OES_geometry_shader and ARB_gpu_shader5 * based on this value, apart from that it doesn't * seem to be a crucial value */ - caps->v1.glsl_level = 400; + caps->v1.glsl_level = has_feature(feat_separate_shader_objects) ? 410 : 400; } }