Add check for null compositeOperation option when setting useSketch

This commit is contained in:
Mei-Hui Su 2016-01-20 09:14:10 -08:00
parent ac0438e07b
commit 91ecd80a4f

View File

@ -1329,7 +1329,9 @@ function drawTiles( tiledImage, lastDrawn ) {
drawDebugInfo( tiledImage, lastDrawn );
return;
}
var useSketch = tiledImage.opacity < 1 || tiledImage.compositeOperation !== 'source-over';
var useSketch = tiledImage.opacity < 1 ||
(tiledImage.compositeOperation !== null && tiledImage.compositeOperation !== 'source-over');
var sketchScale;
var sketchTranslate;