From 8189c64d7f07a756abf5a6189719f02b2f1af967 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 11 Jul 2017 00:14:55 +1200 Subject: Fixed that warnings that showed up with optimisations. --- include/render/gles2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index 7b835209..e57d40f4 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -5,6 +5,7 @@ #include #include #include +#include struct pixel_format { uint32_t wl_format; @@ -41,7 +42,7 @@ extern const GLchar fragment_src_rgbx[]; bool _gles2_flush_errors(const char *file, int line); #define gles2_flush_errors(...) \ - _gles2_flush_errors(__FILE__ + strlen(WLR_SRC_DIR) + 1, __LINE__) + _gles2_flush_errors(_strip_path(__FILE__), __LINE__) #define GL_CALL(func) func; gles2_flush_errors() -- cgit v1.2.3