Exit draw region in penStamp less

This commit is contained in:
adroitwhiz 2019-04-20 02:31:04 -04:00
parent 590c2ca084
commit 750f40ddf2

View File

@ -1409,8 +1409,6 @@ class RenderWebGL extends EventEmitter {
* @param {int} stampID - the unique ID of the Drawable to use as the stamp.
*/
penStamp (penSkinID, stampID) {
this._doExitDrawRegion();
const stampDrawable = this._allDrawables[stampID];
if (!stampDrawable) {
return;
@ -1421,6 +1419,8 @@ class RenderWebGL extends EventEmitter {
return;
}
this._doExitDrawRegion();
const skin = /** @type {PenSkin} */ this._allSkins[penSkinID];
const gl = this._gl;