mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
Use OpenGL ES by default
This replaces `use_gles` boolean build option with `opengles` feature option. If OpenGL ES3 is available, it is preferred over desktop OpenGL. This can be overridden by `-Dopengles=disabled` meson flag.
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ png = dependency('libpng')
|
||||
cglm = dependency('cglm', fallback : ['cglm', 'cglm_dep'])
|
||||
sndfile = dependency('sndfile')
|
||||
|
||||
if get_option('use_gles')
|
||||
gles = dependency('glesv2')
|
||||
gles = dependency('glesv2', version : '>=3', required: get_option('opengles'))
|
||||
if gles.found()
|
||||
gl_deps = [gles]
|
||||
add_project_arguments('-DUSE_GLES', language : 'c')
|
||||
else
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
option('debugger', type : 'feature', value : 'auto')
|
||||
option('use_gles', type : 'boolean', value : false, description : 'Target OpenGL ES 3.0')
|
||||
option('opengles', type : 'feature', value : 'auto', description : 'Target OpenGL ES 3.0')
|
||||
|
||||
Reference in New Issue
Block a user