aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-04 14:30:16 +0100
committerGitHub <noreply@github.com>2018-11-04 14:30:16 +0100
commitcb503973cea7c7929c2fcc6fbeb886f2b8a6fa5a (patch)
treeac8d5cee0ea9c0f7a37f1e89ce80a5eb2fcff5e9 /backend
parent675cf8457ef3493112def366d7090731172ee872 (diff)
parentd592dcdedd78136bbc60193473b230505f94d907 (diff)
Merge pull request #1350 from emersion/check-gles2-bgra-ext
render/gles2: remove assumptions about supported formats
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/renderer.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index fa7d090e..70b1bcbe 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -30,8 +30,17 @@ bool init_drm_renderer(struct wlr_drm_backend *drm,
create_renderer_func = wlr_renderer_autocreate;
}
+ static EGLint config_attribs[] = {
+ EGL_RED_SIZE, 1,
+ EGL_GREEN_SIZE, 1,
+ EGL_BLUE_SIZE, 1,
+ EGL_ALPHA_SIZE, 1,
+ EGL_NONE,
+ };
+
renderer->wlr_rend = create_renderer_func(&renderer->egl,
- EGL_PLATFORM_GBM_MESA, renderer->gbm, NULL, GBM_FORMAT_ARGB8888);
+ EGL_PLATFORM_GBM_MESA, renderer->gbm,
+ config_attribs, GBM_FORMAT_ARGB8888);
if (!renderer->wlr_rend) {
wlr_log(WLR_ERROR, "Failed to create EGL/WLR renderer");