diff options
author | 2015-08-27 06:36:33 -0700 | |
---|---|---|
committer | 2015-08-27 06:36:33 -0700 | |
commit | fe495f0bae96c732730a7d6b2667662c4d67bfa1 (patch) | |
tree | 3c8a184919f7097d9e9d2008f6b31d5e0d10b146 /src/gpu | |
parent | ac856c97acc84dcb54d9cdb068ec8a02b8869647 (diff) |
Fix assertion about GPU memory size when the target is not FBO 0
Review URL: https://codereview.chromium.org/1313783007
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/gl/GrGLRenderTarget.cpp | 2 |
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) { |