vrend: Up the shader feature level when on GLES 3.x

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Jakob Bornecrantz 7 years ago
parent 7029a45fec
commit 2505058446
  1. 4
      src/vrend_renderer.c

@ -6605,7 +6605,11 @@ bool vrend_renderer_fill_caps_common(uint32_t set, uint32_t version,
/* Some checks looks at v1.glsl_level so set it here. */ /* Some checks looks at v1.glsl_level so set it here. */
if (vrend_state.use_gles) { if (vrend_state.use_gles) {
if (gl_ver >= 30) {
caps->v1.glsl_level = 130;
} else {
caps->v1.glsl_level = 120; caps->v1.glsl_level = 120;
}
} else if (vrend_state.use_core_profile) { } else if (vrend_state.use_core_profile) {
if (gl_ver == 31) if (gl_ver == 31)
caps->v1.glsl_level = 140; caps->v1.glsl_level = 140;

Loading…
Cancel
Save