aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-23 11:38:45 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-23 11:38:45 -0400
commitb18209c904f421f3065d610718d7d9e9b8b9211f (patch)
treef1b5bcf3c1c7ee50e4a2a3f03c68c1136ef4ed44 /include
parent168f0955ab5d6b614eb841bcb0ea684dd9105ef8 (diff)
Switch to GLES2
Closes #13
Diffstat (limited to 'include')
-rw-r--r--include/render/gles2.h (renamed from include/render/gles3.h)12
-rw-r--r--include/wlr/render/gles2.h7
-rw-r--r--include/wlr/render/gles3.h7
3 files changed, 13 insertions, 13 deletions
diff --git a/include/render/gles3.h b/include/render/gles2.h
index 9acc1088..bd0106b3 100644
--- a/include/render/gles3.h
+++ b/include/render/gles2.h
@@ -3,7 +3,7 @@
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
-#include <GLES3/gl3.h>
+#include <GLES2/gl2.h>
#include <wlr/render.h>
struct wlr_surface_state {
@@ -11,7 +11,7 @@ struct wlr_surface_state {
GLuint tex_id;
};
-struct wlr_surface *gles3_surface_init();
+struct wlr_surface *gles2_surface_init();
extern const GLchar quad_vertex_src[];
extern const GLchar quad_fragment_src[];
@@ -20,10 +20,10 @@ extern const GLchar vertex_src[];
extern const GLchar fragment_src_RGB[];
extern const GLchar fragment_src_RGBA[];
-bool _gles3_flush_errors(const char *file, int line);
-#define gles3_flush_errors(...) \
- _gles3_flush_errors(__FILE__ + strlen(WLR_SRC_DIR) + 1, __LINE__)
+bool _gles2_flush_errors(const char *file, int line);
+#define gles2_flush_errors(...) \
+ _gles2_flush_errors(__FILE__ + strlen(WLR_SRC_DIR) + 1, __LINE__)
-#define GL_CALL(func) func; gles3_flush_errors()
+#define GL_CALL(func) func; gles2_flush_errors()
#endif
diff --git a/include/wlr/render/gles2.h b/include/wlr/render/gles2.h
new file mode 100644
index 00000000..a779ffff
--- /dev/null
+++ b/include/wlr/render/gles2.h
@@ -0,0 +1,7 @@
+#ifndef _WLR_GLES2_RENDERER_H
+#define _WLR_GLES2_RENDERER_H
+#include <wlr/render.h>
+
+struct wlr_renderer *wlr_gles2_renderer_init();
+
+#endif
diff --git a/include/wlr/render/gles3.h b/include/wlr/render/gles3.h
deleted file mode 100644
index 7b60bb97..00000000
--- a/include/wlr/render/gles3.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#ifndef _WLR_GLES3_RENDERER_H
-#define _WLR_GLES3_RENDERER_H
-#include <wlr/render.h>
-
-struct wlr_renderer *wlr_gles3_renderer_init();
-
-#endif