From 2b909e1729a5913098dcb67c46404a9ab93221e2 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 9 Jun 2017 10:28:50 -0400 Subject: Add error "handling" to gles3 backend --- include/render/gles3.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/render') diff --git a/include/render/gles3.h b/include/render/gles3.h index 91b738a6..5efb197e 100644 --- a/include/render/gles3.h +++ b/include/render/gles3.h @@ -1,6 +1,8 @@ #ifndef _WLR_RENDER_GLES2_INTERNAL_H #define _WLR_RENDER_GLES2_INTERNAL_H #include +#include +#include #include #include @@ -15,4 +17,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__) + +#define GL_CALL(func) func; gles3_flush_errors() + #endif -- cgit v1.2.3