diff options
Diffstat (limited to 'drivers/gl_context/SCsub')
-rw-r--r-- | drivers/gl_context/SCsub | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gl_context/SCsub b/drivers/gl_context/SCsub index ce3a598573..ce6ea747b1 100644 --- a/drivers/gl_context/SCsub +++ b/drivers/gl_context/SCsub @@ -5,9 +5,11 @@ Import("env") if env["platform"] in ["macos", "windows", "linuxbsd"]: # Thirdparty source files thirdparty_dir = "#thirdparty/glad/" - thirdparty_sources = [ - "gl.c", - ] + thirdparty_sources = ["gl.c"] + + if not env.get("angle_libs"): + thirdparty_sources += ["egl.c"] + thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] # Treat glad headers as system headers to avoid raising warnings. Not supported on MSVC. @@ -17,7 +19,7 @@ if env["platform"] in ["macos", "windows", "linuxbsd"]: env.Prepend(CPPPATH=[thirdparty_dir]) env.Append(CPPDEFINES=["GLAD_ENABLED"]) - env.Append(CPPDEFINES=["GLES_OVER_GL"]) + env.Append(CPPDEFINES=["EGL_ENABLED"]) env_thirdparty = env.Clone() env_thirdparty.disable_warnings() |