mirror of
https://chromium.googlesource.com/webm/libwebp
synced 2026-01-25 00:46:15 +00:00
vwebp: clear canvas during resize w/o animation
this corrects the checkboard pattern displayed with transparent images
Change-Id: I5f46dbc9fa3893d61f5f1d4fda643ac030238f94
(cherry picked from commit 67c25ad5b4)
This commit is contained in:
@@ -264,6 +264,7 @@ static void HandleReshape(int width, int height) {
|
||||
glLoadIdentity();
|
||||
kParams.viewport_width = width;
|
||||
kParams.viewport_height = height;
|
||||
if (!kParams.has_animation) ClearPreviousFrame();
|
||||
}
|
||||
|
||||
static void PrintString(const char* const text) {
|
||||
|
||||
Reference in New Issue
Block a user