Problem running OpenGL program in a virtual machine

In case you encounter the following issue when running OpenGL program in a virtual machine

OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x180fb10
OpenGL Warning: Retry with 0x8002 returned 0 visuals
Segmentation fault (core dumped)

You may set the LIBGL_ALWAYS_INDIRECT environment variable to 1 before running my GLUT programs, as follows.

export LIBGL_ALWAYS_INDIRECT=1

Reference

Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player