mirror of
https://github.com/helfrichmichael/prusaslicer-novnc.git
synced 2024-08-30 18:32:27 +00:00
fix: add env varitable to enable/disable hw accel for 3d.
Signed-off-by: vajonam <152501+vajonam@users.noreply.github.com>
This commit is contained in:
parent
50f2acd3b5
commit
30aa433c05
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -x
|
||||
set -e
|
||||
rm -f /tmp/.X*-lock
|
||||
rm -f /tmp/.X11-unix/X*
|
||||
@ -16,7 +16,12 @@ else
|
||||
export VNC_SEC="-securitytypes TLSNone,X509None,None"
|
||||
fi
|
||||
export LOCALFBPORT=$((${VNC_PORT} + DISPLAY_NUMBER))
|
||||
export VGLRUN="${VGLRUN:-/usr/bin/vglrun}"
|
||||
if [ -n "$ENABLEHWGPU" ] && [ "$ENABLEHWGPU" = "true" ]; then
|
||||
export VGLRUN="/usr/bin/vglrun"
|
||||
else
|
||||
export VGLRUN=
|
||||
fi
|
||||
|
||||
export SUPD_LOGLEVEL="${SUPD_LOGLEVEL:-TRACE}"
|
||||
export VGL_DISPLAY="${VGL_DISPLAY:-egl}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user