GF_Err gf_filter_set_active_opengl_context(GF_Filter *filter)
{
#ifndef GPAC_DISABLE_3D
	if (filter->finalized || filter->removed) return GF_OK;
	return gf_fs_set_gl(filter->session);
#else
	return GF_NOT_SUPPORTED;
#endif
}
GF_Err gf_filter_set_active_opengl_context(GF_Filter *filter)
{
#ifndef GPAC_DISABLE_3D
	if (filter->finalized || filter->removed) return GF_OK;
	return gf_fs_set_gl(filter->session);
#else
	return GF_NOT_SUPPORTED;
#endif
}