commit | 8c9b6f1d71faeff9ae742425466a4ee58492d6d2 | [log] [tgz] |
---|---|---|
author | egdaniel <egdaniel@google.com> | Tue May 12 13:36:30 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue May 12 13:36:30 2015 -0700 |
tree | d5169ce32996eb0d15d3c961307db442476dc884 | |
parent | dd4e56849ee832c862314744d60e669a265eaacc [diff] [blame] |
Add check in GrGpu createTexture to make sure we don't create multisampled textures. BUG=skia: Review URL: https://codereview.chromium.org/1138223003
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 15e4b28..b7d362c 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp
@@ -76,6 +76,11 @@ return NULL; } + // We currently not support multisampled textures + if (!isRT && desc.fSampleCnt > 0) { + return NULL; + } + GrTexture *tex = NULL; if (isRT) {