summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/platform_gl.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-04 15:35:05 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-04 15:35:05 +0200
commit03ff9fedb60e6ee13b1340b127e624e2d9b875cc (patch)
tree7a1b68fbcd681c500c27beed17df20f2acc8a328 /platform/linuxbsd/platform_gl.h
parentbb30c8377c3a49edeb025ec797bd2e2fecdc179d (diff)
parentaf00c4a54a34158a6db1da1738d96f389ff4697f (diff)
downloadredot-engine-03ff9fedb60e6ee13b1340b127e624e2d9b875cc.tar.gz
Merge pull request #82101 from bruvzg/x11_gles
[X11] Add support for using EGL/GLES instead of GLX.
Diffstat (limited to 'platform/linuxbsd/platform_gl.h')
-rw-r--r--platform/linuxbsd/platform_gl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/linuxbsd/platform_gl.h b/platform/linuxbsd/platform_gl.h
index 1c19c4518a..5d4c2d8978 100644
--- a/platform/linuxbsd/platform_gl.h
+++ b/platform/linuxbsd/platform_gl.h
@@ -35,6 +35,10 @@
#define GL_API_ENABLED // Allow using desktop GL.
#endif
+#ifndef GLES_API_ENABLED
+#define GLES_API_ENABLED // Allow using GLES.
+#endif
+
#include "thirdparty/glad/glad/egl.h"
#include "thirdparty/glad/glad/gl.h"