Exemplo n.º 1
0
void obs_transition_tick(obs_source_t *transition)
{
    recalculate_transition_size(transition);
    recalculate_transition_matrices(transition);

    if (trylock_textures(transition) == 0) {
        gs_texrender_reset(transition->transition_texrender[0]);
        gs_texrender_reset(transition->transition_texrender[1]);
        unlock_textures(transition);
    }
}
Exemplo n.º 2
0
static void scene_video_tick(void *data, float seconds)
{
	struct obs_scene *scene = data;
	struct obs_scene_item *item;

	video_lock(scene);
	item = scene->first_item;
	while (item) {
		if (item->item_render)
			gs_texrender_reset(item->item_render);
		item = item->next;
	}
	video_unlock(scene);

	UNUSED_PARAMETER(seconds);
}