diff options
author | James Zern <jzern@google.com> | 2016-12-13 23:21:33 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2016-12-14 11:26:24 -0800 |
commit | a4a8e5f32c434aa78b2dab091d09d4c2c6d73214 (patch) | |
tree | afc5557f9d29a74a8801e714fe9667919598ad09 | |
parent | 31ca2a8098fed3b22b27c2f7d1a6f749ce142e4f (diff) | |
download | libwebp-a4a8e5f32c434aa78b2dab091d09d4c2c6d73214.tar.gz |
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)
-rw-r--r-- | examples/vwebp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/vwebp.c b/examples/vwebp.c index 67a0750d..e086e6bd 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -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) { |