Skip to content

Commit 894a8e4

Browse files
committed
only use minfilter for image when map is moving and view changed
1 parent 4b1c4dc commit 894a8e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/layer/ImageGLRenderable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ const ImageGLRenderable = Base => {
396396
image.texture = texture;
397397
}
398398
gl.bindTexture(gl.TEXTURE_2D, texture);
399-
if (map.getRenderer().isViewChanged()) {
399+
if (map.isMoving() && map.getRenderer().isViewChanged()) {
400400
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);
401401
} else {
402402
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);

0 commit comments

Comments
 (0)