aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorzccrs <zccrs@live.com>2021-05-28 14:06:49 +0800
committerSimon Ser <contact@emersion.fr>2021-06-19 10:04:35 +0200
commitfdc40e071ed103d6bdc03fa6181dedef296b0509 (patch)
treed31934907fb002216244b612741cbf17dc5c50f1 /include/wlr
parent103edde4810e35b5a95be4205436239a5ee724c9 (diff)
render/gles2: add wlr_renderer_is_gles2
Export the interface used to determine whether the wlr_renderer object is gles2.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/render/gles2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/render/gles2.h b/include/wlr/render/gles2.h
index 5bdf6edb..a97b495c 100644
--- a/include/wlr/render/gles2.h
+++ b/include/wlr/render/gles2.h
@@ -30,6 +30,7 @@ struct wlr_gles2_texture_attribs {
bool has_alpha;
};
+bool wlr_renderer_is_gles2(struct wlr_renderer *wlr_renderer);
bool wlr_texture_is_gles2(struct wlr_texture *texture);
void wlr_gles2_texture_get_attribs(struct wlr_texture *texture,
struct wlr_gles2_texture_attribs *attribs);