diff options
Diffstat (limited to 'src/gpu/gl/GrGLStencilAttachment.cpp')
-rw-r--r-- | src/gpu/gl/GrGLStencilAttachment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLStencilAttachment.cpp b/src/gpu/gl/GrGLStencilAttachment.cpp index 5c07a7d383..aa813ed50e 100644 --- a/src/gpu/gl/GrGLStencilAttachment.cpp +++ b/src/gpu/gl/GrGLStencilAttachment.cpp @@ -14,7 +14,7 @@ size_t GrGLStencilAttachment::onGpuMemorySize() const { uint64_t size = this->width(); size *= this->height(); size *= fFormat.fTotalBits; - size *= this->numSamples(); + size *= SkTMax(1,this->numSamples()); return static_cast<size_t>(size / 8); } |