From 3391459590241609102b0eb66702d3dee75c381d Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 3 Dec 2015 10:36:21 +0100 Subject: [PATCH] vwebp: work around the transparent background with GLUT bug we setenv XLIB_SKIP_ARGB_VISUALS=1 before any GLUT call. Change-Id: I4cff5b6c6155d5a074fa22fe56219f241558666e --- examples/vwebp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/vwebp.c b/examples/vwebp.c index bcc67da9..f09aec43 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -526,6 +526,12 @@ int main(int argc, char *argv[]) { WebPDemuxGetFrame(kParams.dmux, 0, curr); 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) glutInit(&argc, argv); #ifdef FREEGLUT