vwebp: clear canvas during resize w/o animation

this corrects the checkboard pattern displayed with transparent images

Change-Id: I5f46dbc9fa3893d61f5f1d4fda643ac030238f94
This commit is contained in:
James Zern 2016-12-13 23:21:33 -08:00
parent a4bbe4b38b
commit 67c25ad5b4

View File

@ -269,6 +269,7 @@ static void HandleReshape(int width, int height) {
glLoadIdentity(); glLoadIdentity();
kParams.viewport_width = width; kParams.viewport_width = width;
kParams.viewport_height = height; kParams.viewport_height = height;
if (!kParams.has_animation) ClearPreviousFrame();
} }
static void PrintString(const char* const text) { static void PrintString(const char* const text) {