mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Enable alpha in vvwebp
Change-Id: I9499b6d4ea64b7eab18cb377f0bb09b6b494c534
This commit is contained in:
parent
8de9a0847b
commit
08220102d1
@ -146,6 +146,8 @@ static void StartDisplay(const WebPDecBuffer* const pic) {
|
||||
glutDisplayFunc(HandleDisplay);
|
||||
glutIdleFunc(NULL);
|
||||
glutKeyboardFunc(HandleKey);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glEnable(GL_BLEND);
|
||||
glClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
HandleReshape(pic->width, pic->height);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user