aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar chinmaygarde <chinmaygarde@google.com>2015-08-27 06:36:33 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-27 06:36:33 -0700
commitfe495f0bae96c732730a7d6b2667662c4d67bfa1 (patch)
tree3c8a184919f7097d9e9d2008f6b31d5e0d10b146 /src/gpu
parentac856c97acc84dcb54d9cdb068ec8a02b8869647 (diff)
Fix assertion about GPU memory size when the target is not FBO 0
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/gl/GrGLRenderTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLRenderTarget.cpp b/src/gpu/gl/GrGLRenderTarget.cpp
index 26c8d46658..cb9d310010 100644
--- a/src/gpu/gl/GrGLRenderTarget.cpp
+++ b/src/gpu/gl/GrGLRenderTarget.cpp
@@ -40,7 +40,7 @@ void GrGLRenderTarget::init(const GrSurfaceDesc& desc, const IDDesc& idDesc) {
// We own one color value for each MSAA sample.
int colorValuesPerPixel = SkTMax(1, fDesc.fSampleCnt);
- if (fTexFBOID != fRTFBOID) {
+ if (fTexFBOID != kUnresolvableFBOID && fTexFBOID != fRTFBOID) {
// If we own the resolve buffer then that is one more sample per pixel.
colorValuesPerPixel += 1;
} else if (fTexFBOID != 0) {