From b963a61caf7f209fee922639b93959707cd2929c Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Sat, 28 Mar 2026 11:35:47 -0500 Subject: [PATCH] refactor: use combo option for renderer selection --- meson.build | 2 +- meson.options | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index a62becd63..bee78f958 100644 --- a/meson.build +++ b/meson.build @@ -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', diff --git a/meson.options b/meson.options index 6f4f4808b..bc73c0516 100644 --- a/meson.options +++ b/meson.options @@ -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', -)