mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-27 07:02:55 +01: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 67c25ad5b420af07ea4cc5b4957b49ed1b9894bc)
This commit is contained in:
parent
31ca2a8098
commit
a4a8e5f32c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user