示例#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);
}
示例#2
0
void kmGLClearCurrentContext()
{
    kmGLClearContext((km_mat4_stack_context *)pthread_getspecific(current_context_key));
    pthread_setspecific(current_context_key, NULL);
}
示例#3
0
文件: matrix.c 项目: Cloudef/kazmath
void kmGLClearCurrentContext()
{
    kmGLClearContext(pthread_getspecific(current_context_key));
    pthread_setspecific(current_context_key, NULL);
}