File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,8 @@ def _find_vgl():
338338 Locate the VGL wrapper if installed.
339339 """
340340 have_key = os .path .isfile ('/etc/opt/VirtualGL/vgl_xauth_key' )
341+ # test for egl support
342+ has_egl = os .path .isfile ('/opt/VirtualGL/bin/eglinfo' )
341343 vgl_path = shutil .which ('vglrun' )
342344 if vgl_path is None :
343345 vgl_path = shutil .which ('vglrun' , path = '/usr/pubsw/bin' )
@@ -346,6 +348,9 @@ def _find_vgl():
346348 islocal = any ([os .environ .get ('DISPLAY' , '' ).endswith (string ) for string in (':0' , ':0.0' )])
347349 no_glx = 'NV-GLX' in collect_output ('xdpyinfo' )[0 ]
348350 if not islocal and not no_glx :
351+ # add flag for egl if supported
352+ if has_egl :
353+ vgl_path = vgl_path + ' -d egl'
349354 return vgl_path
350355 return None
351356
You can’t perform that action at this time.
0 commit comments