mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-11 02:20:33 +02:00
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:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user