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', -)