diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-28 07:38:39 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-28 13:03:47 +0000 |
commit | 7f1b4f8cc39cfe5717db2a4a16bfd9e23cd49c50 (patch) | |
tree | dd5be3acefae18a7942a5bf5604143de3c50a028 /src/gpu | |
parent | 37b501d2c9d25c5ecff772aac1f28878ab49025e (diff) |
Fix issues related to backend texture/rendertarget creation
Change-Id: I640ea5f316e9e4aba778f450655e74636199e0b1
Reviewed-on: https://skia-review.googlesource.com/76440
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrResourceProvider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp index dfde098c55..8b36badb35 100644 --- a/src/gpu/GrResourceProvider.cpp +++ b/src/gpu/GrResourceProvider.cpp @@ -77,7 +77,7 @@ sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, Sk SkDestinationSurfaceColorMode mipColorMode) { ASSERT_SINGLE_OWNER - SkASSERT(mipLevelCount > 1); + SkASSERT(mipLevelCount > 0); if (this->isAbandoned()) { return nullptr; |