Ejemplo n.º 1
0
void
glsl_type::init_ralloc_type_ctx(void)
{
   if (glsl_type::mem_ctx == NULL) {
      glsl_type::mem_ctx = ralloc_autofree_context();
      assert(glsl_type::mem_ctx != NULL);
   }
}
Ejemplo n.º 2
0
void glsl_type::init_ralloc_type_ctx(void)
{
    if (BaseTypesContext == nullptr)
    {
        BaseTypesContext = ralloc_autofree_context();
        check(BaseTypesContext);
    }
}