mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
render: remove GL calls from wlr_egl
This commit is contained in:
parent
1ed90541f9
commit
c42fd1018b
4 changed files with 16 additions and 16 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue