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