Skip to content

Commit

Permalink
only use minfilter for image when map is moving and view changed
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Sep 21, 2023
1 parent 4b1c4dc commit 894a8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/layer/ImageGLRenderable.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ const ImageGLRenderable = Base => {
image.texture = texture;
}
gl.bindTexture(gl.TEXTURE_2D, texture);
if (map.getRenderer().isViewChanged()) {
if (map.isMoving() && map.getRenderer().isViewChanged()) {
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);
} else {
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
Expand Down

0 comments on commit 894a8e4

Please sign in to comment.