Skip to content
Browse files

yquake: update for buster & fkms

* use gl3 for x11 targets (will degrade to gl1 if needed)
* use gl1 for mesa/fkms
* use software rendering for all other targets
* use the current framebuffer resolution on kms targets
  • Loading branch information...
psyke83 committed Jul 11, 2019
1 parent 39a6f67 commit e3e545c42f53ab6c76df25481d84c6dd7bca7fe2
Showing with 11 additions and 2 deletions.
  1. +11 −2 scriptmodules/ports/
@@ -85,14 +85,23 @@ function game_data_yquake2() {

function configure_yquake2() {
local params=()
if isPlatform "gles"; then

if isPlatform "x11"; then
params+=("+set vid_renderer gl3")
elif isPlatform "mesa"; then
params+=("+set vid_renderer gl1")
params+=("+set vid_renderer soft")

if isPlatform "kms"; then
params+=("+set r_mode -1" "+set r_customwidth %XRES%" "+set r_customheight %YRES%")

mkRomDir "ports/quake2"

moveConfigDir "$home/.yq2" "$md_conf_root/quake2/yquake2"

[[ "$md_mode" == "install" ]] && game_data_yquake2
add_games_yquake2 "$md_inst/quake2 -datadir $romdir/ports/quake2 ${params[@]} +set game %ROM%"
add_games_yquake2 "$md_inst/quake2 -datadir $romdir/ports/quake2 ${params[*]} +set game %ROM%"

0 comments on commit e3e545c

Please sign in to comment.
You can’t perform that action at this time.