diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-27 17:07:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 17:07:36 -0400 |
commit | 6f2de28e5ebc1f8d2b2f2bd2e0532ffe994cd95a (patch) | |
tree | 572d1a26a9ceaf628416340cdbaaf59f86f1ceb5 /render/gles2/renderer.c | |
parent | 1ed90541f9ded47acd5989866927becc0f451d08 (diff) | |
parent | c42fd1018b037f20c5045fb3cbf39ac35ec980c6 (diff) |
Merge pull request #761 from emersion/remove-gl-from-egl
render: remove GL calls from wlr_egl
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r-- | render/gles2/renderer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 61665a07..36a62aa7 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -377,6 +377,11 @@ struct wlr_renderer *wlr_gles2_renderer_create(struct wlr_backend *backend) { renderer->egl = wlr_backend_get_egl(backend); wlr_egl_make_current(renderer->egl, EGL_NO_SURFACE, NULL); + renderer->exts_str = (const char*) glGetString(GL_EXTENSIONS); + wlr_log(L_INFO, "Using %s", glGetString(GL_VERSION)); + wlr_log(L_INFO, "GL vendor: %s", glGetString(GL_VENDOR)); + wlr_log(L_INFO, "Supported GLES2 extensions: %s", renderer->exts_str); + if (glDebugMessageCallbackKHR && glDebugMessageControlKHR) { glEnable(GL_DEBUG_OUTPUT_KHR); glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR); |