diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 1994f891b24..c3809bcc1ac 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -771,13 +771,13 @@ _mesa_get_shading_language_version(const struct gl_context *ctx, GLSL_VERSION(""); /* GLSL es */ - if (_mesa_is_gles32(ctx) || ctx->Extensions.ARB_ES3_2_compatibility) + if (_mesa_is_gles32_compatible(ctx)) GLSL_VERSION("320 es"); - if (_mesa_is_gles31(ctx) || ctx->Extensions.ARB_ES3_1_compatibility) + if (_mesa_is_gles31_compatible(ctx)) GLSL_VERSION("310 es"); - if (_mesa_is_gles3(ctx) || ctx->Extensions.ARB_ES3_compatibility) + if (_mesa_is_gles3_compatible(ctx)) GLSL_VERSION("300 es"); - if (_mesa_is_gles2(ctx) || ctx->Extensions.ARB_ES2_compatibility) + if (_mesa_is_gles2_compatible(ctx)) GLSL_VERSION("100"); #undef GLSL_VERSION