draw->swap_interval = interval;
}
+static void
+dri3_set_render_buffer(struct loader_dri3_drawable *draw, int buf_id,
+ struct loader_dri3_buffer *buffer)
+{
+ draw->buffers[buf_id] = buffer;
+}
+
/** dri3_free_render_buffer
*
* Free everything associated with one render buffer including pixmap, fence
buffer->shm_fence = shm_fence;
buffer->sync_fence = sync_fence;
- draw->buffers[buf_id] = buffer;
+ dri3_set_render_buffer(draw, buf_id, buffer);
return buffer;
fence_await = true;
}
buffer = new_buffer;
- draw->buffers[buf_id] = buffer;
+ dri3_set_render_buffer(draw, buf_id, buffer);
}
if (fence_await)
if (!back)
return NULL;
- draw->buffers[id] = back;
+ dri3_set_render_buffer(draw, id, back);
/* If necessary, prefill the back with data according to swap_method mode. */
if (draw->cur_blit_source != -1 &&