From a76df8904aeef1f42f3a714797bc3de1bd9e76c5 Mon Sep 17 00:00:00 2001 From: niuwenchao Date: Mon, 11 Sep 2023 17:19:04 +0800 Subject: [PATCH] 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 --- cmds/bootanimation/BootAnimation.cpp | 4 ++-- 1 file 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);