mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
wlr_texture: Drop wlr_texture_from_pixels
Keeping the texture version doesn't make too much sense because compositors should send valid pixel data the first time around meaning they want to render straight away. wlr_raster_from_pixels should be used instead. Also drop a few asserts that are impossible because of the data type.
This commit is contained in:
parent
dae7bd1413
commit
33ae408579
2 changed files with 0 additions and 32 deletions
|
|
@ -26,14 +26,6 @@ struct wlr_texture {
|
|||
struct wl_list link;
|
||||
};
|
||||
|
||||
/**
|
||||
* Create a new texture from raw pixel data. `stride` is in bytes. The returned
|
||||
* texture is mutable.
|
||||
*/
|
||||
struct wlr_texture *wlr_texture_from_pixels(struct wlr_renderer *renderer,
|
||||
uint32_t fmt, uint32_t stride, uint32_t width, uint32_t height,
|
||||
const void *data);
|
||||
|
||||
/**
|
||||
* Update a texture with a struct wlr_buffer's contents.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue