aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-21 14:52:47 +0200
committerDrew DeVault <sir@cmpwn.com>2020-04-22 22:40:54 +0200
commit5dc3a9c7544e0436494bcc316cfaf4ca93094c6d (patch)
tree611da03263e67e2779f369f2f62962fd4356782c /render
parent01d45062531f8da120343a9ce8d75b12eafcc8da (diff)
render/gles2: add wlr_gles2_renderer_check_ext
Diffstat (limited to 'render')
-rw-r--r--render/gles2/renderer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index cba338a1..8d197f42 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -575,6 +575,8 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_egl *egl) {
return NULL;
}
+ renderer->exts_str = exts_str;
+
wlr_log(WLR_INFO, "Using %s", glGetString(GL_VERSION));
wlr_log(WLR_INFO, "GL vendor: %s", glGetString(GL_VENDOR));
wlr_log(WLR_INFO, "GL renderer: %s", glGetString(GL_RENDERER));
@@ -687,3 +689,9 @@ error:
free(renderer);
return NULL;
}
+
+bool wlr_gles2_renderer_check_ext(struct wlr_renderer *wlr_renderer,
+ const char *ext) {
+ struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer);
+ return check_gl_ext(renderer->exts_str, ext);
+}