Fix GrTextureOp to check the correct cap for multitexturing
Change-Id: I276dff12055b046423ed261d014bc58302fb1347 Reviewed-on: https://skia-review.googlesource.com/70680 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
f5ff9968c9
commit
2b6f614dac
@ -513,7 +513,7 @@ private:
|
||||
}
|
||||
}
|
||||
}
|
||||
int actualMaxTextures = SkTMin(caps.maxFragmentImageStorages(), kMaxTextures);
|
||||
int actualMaxTextures = SkTMin(caps.maxFragmentSamplers(), kMaxTextures);
|
||||
int newProxyCnt = that->fProxyCnt - sharedProxyCnt;
|
||||
if (newProxyCnt + fProxyCnt > actualMaxTextures) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user