mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
wlr renderer/texture: rename init to create when it does alloc
This commit is contained in:
parent
12782eabfe
commit
f24b3df980
15 changed files with 24 additions and 24 deletions
|
|
@ -139,14 +139,14 @@ bool wlr_output_set_cursor(struct wlr_output *output,
|
|||
|
||||
if (!output->cursor.renderer) {
|
||||
/* NULL egl is okay given that we are only using pixel buffers */
|
||||
output->cursor.renderer = wlr_gles2_renderer_init(NULL);
|
||||
output->cursor.renderer = wlr_gles2_renderer_create(NULL);
|
||||
if (!output->cursor.renderer) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!output->cursor.texture) {
|
||||
output->cursor.texture = wlr_render_texture_init(output->cursor.renderer);
|
||||
output->cursor.texture = wlr_render_texture_create(output->cursor.renderer);
|
||||
if (!output->cursor.texture) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ struct wlr_surface *wlr_surface_create(struct wl_resource *res,
|
|||
return NULL;
|
||||
}
|
||||
surface->renderer = renderer;
|
||||
surface->texture = wlr_render_texture_init(renderer);
|
||||
surface->texture = wlr_render_texture_create(renderer);
|
||||
surface->resource = res;
|
||||
surface->current.scale = 1;
|
||||
surface->pending.scale = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue