mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01: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:
parent
a4bbe4b38b
commit
67c25ad5b4
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user