vwebp: work around the transparent background with GLUT bug

we setenv XLIB_SKIP_ARGB_VISUALS=1 before any GLUT call.

Change-Id: I4cff5b6c6155d5a074fa22fe56219f241558666e
This commit is contained in:
Pascal Massimino 2015-12-03 10:36:21 +01:00
parent e4a7eed49d
commit 3391459590

View File

@ -526,6 +526,12 @@ int main(int argc, char *argv[]) {
WebPDemuxGetFrame(kParams.dmux, 0, curr); WebPDemuxGetFrame(kParams.dmux, 0, curr);
if (kParams.loop_count) ++kParams.loop_count; if (kParams.loop_count) ++kParams.loop_count;
#if defined(__unix__) || defined(__CYGWIN__)
// Work around GLUT compositor bug.
// https://bugs.launchpad.net/ubuntu/+source/freeglut/+bug/369891
setenv("XLIB_SKIP_ARGB_VISUALS", "1", 1);
#endif
// Start display (and timer) // Start display (and timer)
glutInit(&argc, argv); glutInit(&argc, argv);
#ifdef FREEGLUT #ifdef FREEGLUT