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:
Brian Salomon 2017-11-13 11:49:13 -05:00 committed by Skia Commit-Bot
parent f5ff9968c9
commit 2b6f614dac

View File

@ -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;