mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 14:43:38 +00:00
refactor: use combo option for renderer selection
This commit is contained in:
parent
73a74f4872
commit
b963a61caf
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue