mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
render: use DRM formats in wlr_texture_from_pixels
This commit is contained in:
parent
b54ef3372d
commit
27fba3df43
6 changed files with 10 additions and 12 deletions
|
|
@ -20,9 +20,9 @@ void wlr_texture_destroy(struct wlr_texture *texture) {
|
|||
}
|
||||
|
||||
struct wlr_texture *wlr_texture_from_pixels(struct wlr_renderer *renderer,
|
||||
enum wl_shm_format wl_fmt, uint32_t stride, uint32_t width,
|
||||
uint32_t height, const void *data) {
|
||||
return renderer->impl->texture_from_pixels(renderer, wl_fmt, stride, width,
|
||||
uint32_t fmt, uint32_t stride, uint32_t width, uint32_t height,
|
||||
const void *data) {
|
||||
return renderer->impl->texture_from_pixels(renderer, fmt, stride, width,
|
||||
height, data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue