summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/gl_manager_x11.h
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-27 01:07:10 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-10-30 02:05:49 +0200
commitce97ddbcb125228cc88fbfdcae932e110ee7daee (patch)
treef3e2f17be75973806d6f468826e0232cf35b247a /platform/linuxbsd/gl_manager_x11.h
parente3491a37445014cc3527d6f2c1467063222b2dd8 (diff)
downloadredot-engine-ce97ddbcb125228cc88fbfdcae932e110ee7daee.tar.gz
Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3
- Use lowercase driver names for the `--rendering-driver` command line argument.
Diffstat (limited to 'platform/linuxbsd/gl_manager_x11.h')
-rw-r--r--platform/linuxbsd/gl_manager_x11.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/platform/linuxbsd/gl_manager_x11.h b/platform/linuxbsd/gl_manager_x11.h
index 6781312074..e2e2545f3e 100644
--- a/platform/linuxbsd/gl_manager_x11.h
+++ b/platform/linuxbsd/gl_manager_x11.h
@@ -28,13 +28,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
-#pragma once
+#ifndef GL_MANAGER_X11_H
+#define GL_MANAGER_X11_H
#ifdef X11_ENABLED
-#include "drivers/gles_common/rasterizer_platforms.h"
+#include "drivers/opengl/rasterizer_platforms.h"
-#if defined(GLES_X11_ENABLED)
+#ifdef OPENGL_ENABLED
#include "core/os/os.h"
#include "core/templates/local_vector.h"
@@ -47,7 +48,7 @@ struct GLManager_X11_Private;
class GLManager_X11 {
public:
enum ContextType {
- GLES_2_0_COMPATIBLE,
+ GLES_3_0_COMPATIBLE,
};
private:
@@ -123,5 +124,7 @@ public:
~GLManager_X11();
};
-#endif // GLES_X11_ENABLED
+#endif // OPENGL_ENABLED
#endif // X11_ENABLED
+
+#endif // GL_MANAGER_X11_H