Enable alpha in vvwebp

Change-Id: I9499b6d4ea64b7eab18cb377f0bb09b6b494c534
This commit is contained in:
Urvang Joshi 2012-06-20 11:18:35 -07:00
parent 8de9a0847b
commit 08220102d1

View File

@ -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);
}