diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 18:52:16 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-18 18:52:16 +0000 |
commit | 5898dce287b0d1ec535a9cfc1c5870a9cdcf5d1b (patch) | |
tree | 29acd547a4b2395a511f52e90c66822408b18a8d /src/gpu/GrContext.cpp | |
parent | e2419cc5edbe1a6a7dae81a90ca44673a1fa030f (diff) |
Attempt to remove 64 bit min size for NPOT resized texture.
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://chromiumcodereview.appspot.com/24123003
git-svn-id: http://skia.googlecode.com/svn/trunk@11356 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index d931de5ff1..e62aa5d648 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -322,8 +322,8 @@ GrTexture* GrContext::createResizedTexture(const GrTextureDesc& desc, rtDesc.fFlags = rtDesc.fFlags | kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit; - rtDesc.fWidth = GrNextPow2(GrMax(desc.fWidth, 64)); - rtDesc.fHeight = GrNextPow2(GrMax(desc.fHeight, 64)); + rtDesc.fWidth = GrNextPow2(desc.fWidth); + rtDesc.fHeight = GrNextPow2(desc.fHeight); GrTexture* texture = fGpu->createTexture(rtDesc, NULL, 0); |