refactor: use combo option for renderer selection

This commit is contained in:
Tropical 2026-03-28 11:35:47 -05:00
parent 73a74f4872
commit b963a61caf
2 changed files with 8 additions and 9 deletions

View file

@ -18,7 +18,7 @@ python = pymod.find_installation('python3', required: true)
cc = meson.get_compiler('cpp')
use_gles = get_option('gles')
use_gles = get_option('renderer') == 'gles'
global_cpp_defs = [
'-DSPLIT_SAVES',

View file

@ -9,14 +9,13 @@ option('classic_panorama',
value : false,
description : 'Enable classic java edition panorama (ui_backend=java ONLY).')
option('enable_vsync',
option('renderer',
type : 'combo',
choices: ['gl2', 'gl3', 'gles'],
value : 'gl3',
description : 'Specifies a rendering implementation for the game.')
option('enable_vsync',
type : 'boolean',
value : true,
description : 'Toggles V-Sync and adds options to unlock maximum in-game framerate.')
option(
'gles',
type: 'boolean',
value: false,
description: 'Use OpenGL ES instead of Desktop GL',
)