From a4a8e5f32c434aa78b2dab091d09d4c2c6d73214 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 13 Dec 2016 23:21:33 -0800 Subject: [PATCH] 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) --- examples/vwebp.c | 1 + 1 file changed, 1 insertion(+) 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) {