diff options
Diffstat (limited to 'src/gpu/effects/GrBitmapTextGeoProc.cpp')
-rw-r--r-- | src/gpu/effects/GrBitmapTextGeoProc.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.cpp b/src/gpu/effects/GrBitmapTextGeoProc.cpp index 527d5ce276..470af46783 100644 --- a/src/gpu/effects/GrBitmapTextGeoProc.cpp +++ b/src/gpu/effects/GrBitmapTextGeoProc.cpp @@ -105,9 +105,10 @@ public: // Currently we hardcode numbers to convert atlas coordinates to normalized floating point SkASSERT(gp.numTextureSamplers() == 1); GrTexture* atlas = gp.textureSampler(0).texture(); - SkASSERT(atlas); - b->add32(atlas->width()); - b->add32(atlas->height()); + if (atlas) { + b->add32(atlas->width()); + b->add32(atlas->height()); + } } private: |