Reuse some code from the new gl backend
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@@ -6,7 +6,9 @@ if get_option('new_backends')
|
||||
# enable opengl
|
||||
if get_option('opengl')
|
||||
srcs += [ files('gl/gl_common.c', 'gl/glx.c') ]
|
||||
deps += [ dependency('gl', required: true) ]
|
||||
cflags += [ '-DGL_GLEXT_PROTOTYPES' ]
|
||||
endif
|
||||
endif
|
||||
|
||||
if get_option('opengl')
|
||||
srcs += [ files('gl/gl_common.c') ]
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user