diff options
Diffstat (limited to 'src/gpu/GrSWMaskHelper.cpp')
-rw-r--r-- | src/gpu/GrSWMaskHelper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp index 624b796f7e..5fb944bac4 100644 --- a/src/gpu/GrSWMaskHelper.cpp +++ b/src/gpu/GrSWMaskHelper.cpp @@ -138,6 +138,9 @@ void GrSWMaskHelper::toTexture(GrTexture *texture) { // writing since no one else will be using 'texture' bool reuseScratch = fContext->getGpu()->caps()->reuseScratchTextures(); + // Since we're uploading to it, 'texture' shouldn't have a render target. + SkASSERT(NULL == texture->asRenderTarget()); + texture->writePixels(0, 0, fBM.width(), fBM.height(), kAlpha_8_GrPixelConfig, fBM.getPixels(), fBM.rowBytes(), |