Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2011-12-16 15:22:04
Size: 733
Editor: hgiger
Comment:
Revision 6 as of 2020-09-10 07:36:03
Size: 0
Editor: hgiger
Comment: Obsolete
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Problem =

When trying to launch an application within a vncserver Session which needs OpenGL the application crashes.

= Possible Workaround =

Set the environment variable {{{LIBGL_ALWAYS_INDIRECT}}} to {{{yes}}} as followed.

Open a shell and type:

{{{
$ echo $SHELL
}}}

To determine what shell you are using. Then:

{{{
$ export LIBGL_ALWAYS_INDIRECT=yes (for 'bash')

$ setenv LIBGL_ALWAYS_INDIRECT yes (for 'tcsh')
}}}


After that start your application in the shell as usual:

{{{
$ <application>
}}}

What does {{{LIBGL_ALWAYS_INDIRECT}}} do? See: http://unix.stackexchange.com/questions/1437/what-does-libgl-always-indirect-1-actually-do and http://www.mesa3d.org/envvars.html