Fix an error check re: sample variables
Bug: skia: Change-Id: I89f2912ba18c27a3b2b99b99c13ec92a2cc3ebff Reviewed-on: https://skia-review.googlesource.com/c/skia/+/228572 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
b34cf22810
commit
a7ad120fb6
@ -216,7 +216,7 @@ public:
|
||||
}
|
||||
|
||||
const char* sampleVariablesExtensionString() const {
|
||||
SkASSERT(this->sampleVariablesSupport());
|
||||
SkASSERT(this->sampleVariablesSupport() || this->sampleVariablesStencilSupport());
|
||||
return fSampleVariablesExtensionString;
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ const char* GrGLSLFragmentShaderBuilder::sampleOffsets() {
|
||||
void GrGLSLFragmentShaderBuilder::maskOffMultisampleCoverage(
|
||||
const char* mask, ScopeFlags scopeFlags) {
|
||||
const GrShaderCaps& shaderCaps = *fProgramBuilder->shaderCaps();
|
||||
if (!shaderCaps.sampleVariablesSupport()) {
|
||||
if (!shaderCaps.sampleVariablesSupport() && !shaderCaps.sampleVariablesStencilSupport()) {
|
||||
SkDEBUGFAIL("Attempted to mask sample coverage without support.");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user