diff --git a/src/gpu/GrShaderCaps.cpp b/src/gpu/GrShaderCaps.cpp index 4fe242536d..d723a50ab4 100644 --- a/src/gpu/GrShaderCaps.cpp +++ b/src/gpu/GrShaderCaps.cpp @@ -189,6 +189,9 @@ void GrShaderCaps::applyOptionsOverrides(const GrContextOptions& options) { if (!options.fEnableExperimentalHardwareTessellation) { fMaxTessellationSegments = 0; } + if (options.fReducedShaderVariations) { + fReducedShaderMode = true; + } #if GR_TEST_UTILS if (options.fSuppressDualSourceBlending) { fDualSourceBlendingSupport = false; @@ -200,8 +203,5 @@ void GrShaderCaps::applyOptionsOverrides(const GrContextOptions& options) { fMaxTessellationSegments = std::min(options.fMaxTessellationSegmentsOverride, fMaxTessellationSegments); } - if (options.fReducedShaderVariations) { - fReducedShaderMode = true; - } #endif }