Commit e05ffdd1 by Lingfeng Yang Committed by Commit Bot

GLES1: caps: Use GLES3 spec shader compiler

If we attempt to compile the GLES1 emulation shader when the client version is 1, we use the webgl 1 / GLES2 spec, not the GLES3 spec that we use for GLES1 emulation. This CL adds a case in Compiler.cpp for ES 1 contexts to use the higher spec shader compiler. BUG=angleproject:2306 Change-Id: I86fe534dd405279155bd81680fed77b8f9a09042 Reviewed-on: https://chromium-review.googlesource.com/925548Reviewed-by: 's avatarLingfeng Yang <lfy@google.com> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Commit-Queue: Lingfeng Yang <lfy@google.com>
parent a5d583e9
...@@ -36,6 +36,13 @@ ShShaderSpec SelectShaderSpec(GLint majorVersion, GLint minorVersion, bool isWeb ...@@ -36,6 +36,13 @@ ShShaderSpec SelectShaderSpec(GLint majorVersion, GLint minorVersion, bool isWeb
return isWebGL ? SH_WEBGL2_SPEC : SH_GLES3_SPEC; return isWebGL ? SH_WEBGL2_SPEC : SH_GLES3_SPEC;
} }
} }
// GLES1 emulation: Use GLES3 shader spec.
if (!isWebGL && majorVersion == 1)
{
return SH_GLES3_SPEC;
}
return isWebGL ? SH_WEBGL_SPEC : SH_GLES2_SPEC; return isWebGL ? SH_WEBGL_SPEC : SH_GLES2_SPEC;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment