Set fCanUseDoLoops = false for WebGL 1.0
Change-Id: Ie55e876638246a444c32b169ed3830cd7b0fbab3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304861 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
d007281c9a
commit
d2093b13c8
@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- Shader programs are no longer generated with `do-while` loops in WebGL 1.0.
|
||||
|
||||
## [0.17.1] - 2020-07-21
|
||||
|
||||
### Added
|
||||
|
@ -966,6 +966,11 @@ void GrGLCaps::initGLSL(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli
|
||||
} else if (GR_IS_GR_GL_ES(standard)) {
|
||||
shaderCaps->fBuiltinFMASupport = ctxInfo.glslGeneration() >= k320es_GrGLSLGeneration;
|
||||
}
|
||||
|
||||
if (GR_IS_GR_WEBGL(standard)) {
|
||||
// WebGL 1.0 doesn't support do-while loops.
|
||||
shaderCaps->fCanUseDoLoops = version >= GR_GL_VER(2, 0);
|
||||
}
|
||||
}
|
||||
|
||||
bool GrGLCaps::hasPathRenderingSupport(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) {
|
||||
|
Loading…
Reference in New Issue
Block a user