mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
screencopy: Remove dead code
This commit is contained in:
parent
b7d003caef
commit
3224fe6a51
@ -231,7 +231,6 @@ static bool frame_dma_copy(struct wlr_screencopy_frame_v1 *frame,
|
||||
struct wlr_renderer *renderer = output->renderer;
|
||||
assert(renderer);
|
||||
|
||||
|
||||
struct wlr_texture *src_tex =
|
||||
wlr_texture_from_buffer(renderer, src_buffer);
|
||||
if (src_tex == NULL) {
|
||||
@ -274,8 +273,6 @@ static void frame_handle_output_commit(struct wl_listener *listener,
|
||||
wl_container_of(listener, frame, output_commit);
|
||||
struct wlr_output_event_commit *event = data;
|
||||
struct wlr_output *output = frame->output;
|
||||
struct wlr_renderer *renderer = output->renderer;
|
||||
assert(renderer);
|
||||
|
||||
if (!(event->state->committed & WLR_OUTPUT_STATE_BUFFER)) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user