commit cf931d2

Michael Forney  ·  2013-11-23 01:43:43 +0000 UTC
parent 5551613
renderer: Perform the flush when src and dst exist

Rather than when the buffer is shm.
1 files changed,  +3, -3
+3, -3
 1@@ -239,12 +239,12 @@ void swc_renderer_flush(struct swc_renderer * renderer,
 2     struct wl_shm_buffer * buffer;
 3     struct buffer_state * state;
 4 
 5-    if (!(buffer = wl_shm_buffer_get(surface->state.buffer)))
 6-        return;
 7-
 8     state = buffer_state(surface->state.buffer);
 9     assert(state);
10 
11+    if (!state->src || !state->dst)
12+        return;
13+
14     pixman_image_set_clip_region32(state->src, &surface->state.damage);
15     pixman_image_composite32(PIXMAN_OP_SRC, state->src, NULL, state->dst,
16                              0, 0, 0, 0, 0, 0,