summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author niuwenchao <niuwenchao@xiaomi.com> 2023-09-11 17:19:04 +0800
committer wenchao niu <niuwenchao@xiaomi.com> 2023-10-16 12:42:15 +0000
commita76df8904aeef1f42f3a714797bc3de1bd9e76c5 (patch)
tree43613319b73e675d0c704251cabd47debfa923f6
parent7e44fa6c44cace0006511dea23de7e63e711ba06 (diff)
bootanimtion: fix jagged animation after resolution change
jagged animation after resolution change, change Texture Filtering from GL_NEAREST to GL_LINEAR. Change-Id: I0788db4f4edb109eff3b86ce43be79eb206fe00b Signed-off-by: niuwenchao <niuwenchao@xiaomi.com>
-rw-r--r--cmds/bootanimation/BootAnimation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 681f8e9f44a0..f8706b3e65d6 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -389,8 +389,8 @@ status_t BootAnimation::initTexture(FileMap* map, int* width, int* height,
break;
}
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);