swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit cf931d21b00d2fe8a1c1de3a8a12f4d0d2a13e65
parent 55516135bcc05097facc97735dfde75f1ff793c0
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 22 Nov 2013 17:43:43 -0800

renderer: Perform the flush when src and dst exist

Rather than when the buffer is shm.

Diffstat:
Mlibswc/renderer.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libswc/renderer.c b/libswc/renderer.c @@ -239,12 +239,12 @@ void swc_renderer_flush(struct swc_renderer * renderer, struct wl_shm_buffer * buffer; struct buffer_state * state; - if (!(buffer = wl_shm_buffer_get(surface->state.buffer))) - return; - state = buffer_state(surface->state.buffer); assert(state); + if (!state->src || !state->dst) + return; + pixman_image_set_clip_region32(state->src, &surface->state.damage); pixman_image_composite32(PIXMAN_OP_SRC, state->src, NULL, state->dst, 0, 0, 0, 0, 0, 0,