diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-07-11 00:14:55 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-07-11 00:14:55 +1200 |
commit | 8189c64d7f07a756abf5a6189719f02b2f1af967 (patch) | |
tree | 26a5b75622d0a750478dee5c8a5d99f5b75846b6 /include/render | |
parent | be064df25ee7c03543bb86d27addaa297682fba7 (diff) |
Fixed that warnings that showed up with optimisations.
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/gles2.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdbool.h> #include <GLES2/gl2.h> #include <wlr/render.h> +#include <wlr/util/log.h> 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() |