Exemplo n.º 1
0
void kmGLClearAllContexts()
{
    km_mat4_stack_context_list *entry = contexts;
    do {
        kmGLClearContext(&entry->context);
    } while ((entry = entry->next));

    pthread_setspecific(current_context_key, NULL);
}
Exemplo n.º 2
0
void kmGLClearCurrentContext()
{
    kmGLClearContext((km_mat4_stack_context *)pthread_getspecific(current_context_key));
    pthread_setspecific(current_context_key, NULL);
}
Exemplo n.º 3
0
void kmGLClearCurrentContext()
{
    kmGLClearContext(pthread_getspecific(current_context_key));
    pthread_setspecific(current_context_key, NULL);
}