From 1887a9df19ea689bfb69f55454f0598bd09ab95f Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 12 Nov 2021 14:49:49 +0200 Subject: [macOS/Windows] Add optional ANGLE backed OpenGL renderer support. Add EGL_ANDROID_blob_cache caching. Co-authored-by: Riteo --- drivers/gl_context/SCsub | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'drivers/gl_context/SCsub') 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() -- cgit v1.2.3