diff options
author | robertphillips <robertphillips@google.com> | 2015-03-20 06:43:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-20 06:43:11 -0700 |
commit | ca75ea871e40cc4ebd19bfa26a096bec19fd464e (patch) | |
tree | ef12815aeac206b50981a0456424ef30a67b5637 | |
parent | 8c874eee943bdea0fab5b4d2707083c863e37c55 (diff) |
Disable sharing of stencil buffers across differently sized rendertargets
Due to revertapalooza, stencil buffers shared across differently sized rendertargets aren't getting cleared correctly. This CL disables the sharing until the clearing issues can be remedied. Note that stencil buffers should still be shared between identically sized render targets and should still be lazily allocated.
Review URL: https://codereview.chromium.org/1020203002
-rw-r--r-- | src/gpu/GrGpu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index c4b155a2d4..d7d4ae7fd4 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -82,10 +82,12 @@ bool GrGpu::attachStencilBufferToRenderTarget(GrRenderTarget* rt) { int width = rt->width(); int height = rt->height(); +#if 0 if (this->caps()->oversizedStencilSupport()) { width = SkNextPow2(width); height = SkNextPow2(height); } +#endif GrStencilBuffer::ComputeSharedStencilBufferKey(width, height, rt->numSamples(), &sbKey); SkAutoTUnref<GrStencilBuffer> sb(static_cast<GrStencilBuffer*>( |