make SW rendering an option in screenshot making

This commit is contained in:
Rudolf Polzer 2011-12-01 13:03:25 +01:00
parent a017259636
commit e4152eb8d0
2 changed files with 8 additions and 4 deletions

View File

@ -228,9 +228,14 @@ screenshotthemap()
if [ -n "$DISPLAY" ]; then
misc/tools/xonotic-map-screenshot "$M" $screenshot_override +"scr_screenshot_name \"$M-\""
else
#startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -- :8
#startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -gl_driver /usr/local/lib/gallium3d/libGL.so -- /usr/bin/Xvfb :8 -screen 0 1024x768x24
startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -- /usr/bin/Xvfb :8 -screen 0 1024x768x24
case "$DRIVER" in
gl)
startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"scr_screenshot_name \"$M-\"" -- :8
;;
soft|*)
startx "$PWD/misc/tools/xonotic-map-screenshot" "$M" $screenshot_override +"vid_soft 1" +"scr_screenshot_name \"$M-\"" -- /usr/bin/Xvfb :8 -screen 0 1024x768x24
;;
esac
fi
)
if ! mv ~/.xonotic/data/screenshots "$M-$blobhash"; then

View File

@ -13,7 +13,6 @@ count=`yes x | head -n "$count" | tr -cd x`
+'scr_screenshot_timestamp 0' \
+'vid_fullscreen 0' \
+'exec effects-ultimate.cfg' \
+'vid_soft 1' \
"$@" \
+'r_motionblur 0' \
+'r_damageblur 0' \