aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_renderer.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-29 09:46:34 +0200
committerSimon Ser <contact@emersion.fr>2021-04-29 09:46:34 +0200
commit619a9750251a1bff5bef7a1bcd22ee80a56a453f (patch)
tree2f9f3f31f88a86222ff0d0ef2cb2f9cd73b0b4ae /render/wlr_renderer.c
parent6bf2406dbfe4ecd47ff6584632e78cc184b82154 (diff)
render: remove wlr_ prefix from wlr_renderer_autocreate_with_drm_fd
This function is only required because the DRM backend still needs to perform multi-GPU magic under-the-hood. Remove the wlr_ prefix to make it clear it's not a candidate for being made public.
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r--render/wlr_renderer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c
index 853acec3..1fc23657 100644
--- a/render/wlr_renderer.c
+++ b/render/wlr_renderer.c
@@ -231,7 +231,7 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
return true;
}
-struct wlr_renderer *wlr_renderer_autocreate_with_drm_fd(int drm_fd) {
+struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd) {
const char *name = getenv("WLR_RENDERER");
if (name) {
wlr_log(WLR_INFO, "Loading user-specified renderer due to WLR_RENDERER: %s",
@@ -279,7 +279,7 @@ struct wlr_renderer *wlr_renderer_autocreate_with_drm_fd(int drm_fd) {
struct wlr_renderer *wlr_renderer_autocreate(struct wlr_backend *backend) {
// Note, drm_fd may be negative if unavailable
int drm_fd = wlr_backend_get_drm_fd(backend);
- return wlr_renderer_autocreate_with_drm_fd(drm_fd);
+ return renderer_autocreate_with_drm_fd(drm_fd);
}
int wlr_renderer_get_drm_fd(struct wlr_renderer *r) {