aboutsummaryrefslogtreecommitdiff
path: root/include/render
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/render
parent168f0955ab5d6b614eb841bcb0ea684dd9105ef8 (diff)
Switch to GLES2
Closes #13
Diffstat (limited to 'include/render')
-rw-r--r--include/render/gles2.h (renamed from include/render/gles3.h)12
1 files changed, 6 insertions, 6 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