mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
Merge pull request #692 from agx/texture_format_err
textures: tell us which texture format is unsupported
This commit is contained in:
commit
8ba8cc37f2
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ static bool gles2_texture_upload_shm(struct wlr_texture *_texture,
|
||||||
struct wlr_gles2_texture *texture = (struct wlr_gles2_texture *)_texture;
|
struct wlr_gles2_texture *texture = (struct wlr_gles2_texture *)_texture;
|
||||||
const struct pixel_format *fmt = gl_format_for_wl_format(format);
|
const struct pixel_format *fmt = gl_format_for_wl_format(format);
|
||||||
if (!fmt || !fmt->gl_format) {
|
if (!fmt || !fmt->gl_format) {
|
||||||
wlr_log(L_ERROR, "No supported pixel format for this texture");
|
wlr_log(L_ERROR, "Unsupported pixel format %"PRIu32" for this texture",
|
||||||
|
format);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
wl_shm_buffer_begin_access(buffer);
|
wl_shm_buffer_begin_access(buffer);
|
||||||
|
|
Loading…
Reference in a new issue