Use Opaque Canvas where possible

This commit is contained in:
p01 2014-04-03 13:41:24 +02:00
parent 82e6018826
commit b10aa18b3e
4 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ var TextLayerBuilder = function textLayerBuilder(options) {
this.renderLayer = function textLayerBuilderRenderLayer() {
var textDivs = this.textDivs;
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
var ctx = canvas.getContext('2d', {alpha: false});
// No point in rendering so many divs as it'd make the browser unusable
// even after the divs are rendered