diff options
-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) { |