Archived
2
0

remove vaapi.

This commit is contained in:
Miroslav Šedivý
2023-01-15 22:30:52 +01:00
parent 054300e4e2
commit 08f29ad417
2 changed files with 4 additions and 9 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash -e
# Add VirtualGL directories to path
export PATH="${PATH}:/opt/VirtualGL/bin"
# Use VirtualGL to run wine with OpenGL if the GPU is available, otherwise use barebone wine
if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv | sed -n 2p)" ]; then
exec vglrun "$@"
else
echo "No GPU detected"
exec "$@"
fi