mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
render: Drop rendering_with_buffer
This is always true now that we can only render with a buffer.
This commit is contained in:
parent
7702a19739
commit
d7ecdad4e0
@ -41,7 +41,6 @@ struct wlr_renderer {
|
||||
const struct wlr_renderer_impl *impl;
|
||||
|
||||
bool rendering;
|
||||
bool rendering_with_buffer;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -81,7 +81,6 @@ bool wlr_renderer_begin_with_buffer(struct wlr_renderer *r,
|
||||
}
|
||||
|
||||
r->rendering = true;
|
||||
r->rendering_with_buffer = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -93,11 +92,7 @@ void wlr_renderer_end(struct wlr_renderer *r) {
|
||||
}
|
||||
|
||||
r->rendering = false;
|
||||
|
||||
if (r->rendering_with_buffer) {
|
||||
renderer_bind_buffer(r, NULL);
|
||||
r->rendering_with_buffer = false;
|
||||
}
|
||||
renderer_bind_buffer(r, NULL);
|
||||
}
|
||||
|
||||
const uint32_t *wlr_renderer_get_shm_texture_formats(struct wlr_renderer *r,
|
||||
|
Loading…
Reference in New Issue
Block a user