mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-23 15:42:20 +00:00
backend/drm: Remove redundant error logs
wlr_renderer and wlr_allocator will print out errors as they go, and end with a final error if they fail to create anything. The caller of this function will also log when it fails. Skip the redundant errors emitted here.
This commit is contained in:
parent
0108506c77
commit
f440c60128
@ -17,7 +17,6 @@ bool init_drm_renderer(struct wlr_drm_backend *drm,
|
||||
struct wlr_drm_renderer *renderer) {
|
||||
renderer->wlr_rend = renderer_autocreate_with_drm_fd(drm->fd);
|
||||
if (!renderer->wlr_rend) {
|
||||
wlr_log(WLR_ERROR, "Failed to create renderer");
|
||||
return false;
|
||||
}
|
||||
if (wlr_renderer_get_texture_formats(renderer->wlr_rend, WLR_BUFFER_CAP_DMABUF) == NULL) {
|
||||
@ -29,7 +28,6 @@ bool init_drm_renderer(struct wlr_drm_backend *drm,
|
||||
|
||||
renderer->allocator = wlr_allocator_autocreate(&drm->backend, renderer->wlr_rend);
|
||||
if (renderer->allocator == NULL) {
|
||||
wlr_log(WLR_ERROR, "Failed to create allocator");
|
||||
wlr_renderer_destroy(renderer->wlr_rend);
|
||||
renderer->wlr_rend = NULL;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user