|
@@ -698,7 +698,10 @@ class Object #if (domkit && !domkit_heaps) implements domkit.Model<h2d.Object> #
|
|
var width = Math.ceil(total.xMax - xMin - 1e-10);
|
|
var width = Math.ceil(total.xMax - xMin - 1e-10);
|
|
var height = Math.ceil(total.yMax - yMin - 1e-10);
|
|
var height = Math.ceil(total.yMax - yMin - 1e-10);
|
|
|
|
|
|
- if( width <= 0 || height <= 0 || total.xMax < total.xMin ) return;
|
|
|
|
|
|
+ if( width <= 0 || height <= 0 || total.xMax < total.xMin ) {
|
|
|
|
+ ctx.popFilter();
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
var t = ctx.textures.allocTarget("filterTemp", width, height, false);
|
|
var t = ctx.textures.allocTarget("filterTemp", width, height, false);
|
|
ctx.pushTarget(t, xMin, yMin, width, height);
|
|
ctx.pushTarget(t, xMin, yMin, width, height);
|