u_upload_data(ctx->upload, 0, sizeof(ctx->vertices), ctx->vertices,
&vb.buffer_offset, &vb.buffer);
+ if (!vb.buffer)
+ return;
u_upload_unmap(ctx->upload);
pipe->set_vertex_buffers(pipe, ctx->base.vb_slot, 1, &vb);
u_upload_data(ctx->upload, 0, num_channels*4, clear_value,
&vb.buffer_offset, &vb.buffer);
+ if (!vb.buffer)
+ goto out;
+
vb.stride = 0;
blitter_set_running_flag(ctx);
util_draw_arrays(pipe, PIPE_PRIM_POINTS, 0, size / 4);
+out:
blitter_restore_vertex_states(ctx);
blitter_restore_render_cond(ctx);
blitter_unset_running_flag(ctx);