diff --git a/src/render/painter.js b/src/render/painter.js index 32fbe08548b..165a1e6e91c 100644 --- a/src/render/painter.js +++ b/src/render/painter.js @@ -589,6 +589,7 @@ class Painter { */ isPatternMissing(image: ?CrossFaded): boolean { if (!image) return false; + if (!image.from || !image.to) return true; const imagePosA = this.imageManager.getPattern(image.from.toString()); const imagePosB = this.imageManager.getPattern(image.to.toString()); return !imagePosA || !imagePosB; diff --git a/test/integration/render-tests/regressions/mapbox-gl-js#9518/expected.png b/test/integration/render-tests/regressions/mapbox-gl-js#9518/expected.png index f1880cc5e39..1ed60094c40 100644 Binary files a/test/integration/render-tests/regressions/mapbox-gl-js#9518/expected.png and b/test/integration/render-tests/regressions/mapbox-gl-js#9518/expected.png differ diff --git a/test/integration/render-tests/regressions/mapbox-gl-js#9518/style.json b/test/integration/render-tests/regressions/mapbox-gl-js#9518/style.json index 784c801ab9e..a7d66de5770 100644 --- a/test/integration/render-tests/regressions/mapbox-gl-js#9518/style.json +++ b/test/integration/render-tests/regressions/mapbox-gl-js#9518/style.json @@ -2,8 +2,8 @@ "version": 8, "metadata": { "test": { - "width": 64, - "height": 64 + "width": 8, + "height": 8 } }, "zoom": 3,