mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
parent
5ca88af557
commit
5cc7342606
13 changed files with 109 additions and 13 deletions
|
|
@ -252,8 +252,10 @@ static struct wlr_texture_impl wlr_texture_impl = {
|
|||
};
|
||||
|
||||
struct wlr_texture *gles2_texture_init(struct wlr_egl *egl) {
|
||||
struct wlr_gles2_texture *texture =
|
||||
calloc(1, sizeof(struct wlr_gles2_texture));
|
||||
struct wlr_gles2_texture *texture;
|
||||
if (!(texture = calloc(1, sizeof(struct wlr_gles2_texture)))) {
|
||||
return NULL;
|
||||
}
|
||||
wlr_texture_init(&texture->wlr_texture, &wlr_texture_impl);
|
||||
texture->egl = egl;
|
||||
return &texture->wlr_texture;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue