void kmGLClearAllContexts() { km_mat4_stack_context_list *entry = contexts; do { kmGLClearContext(&entry->context); } while ((entry = entry->next)); pthread_setspecific(current_context_key, NULL); }
void kmGLClearCurrentContext() { kmGLClearContext((km_mat4_stack_context *)pthread_getspecific(current_context_key)); pthread_setspecific(current_context_key, NULL); }
void kmGLClearCurrentContext() { kmGLClearContext(pthread_getspecific(current_context_key)); pthread_setspecific(current_context_key, NULL); }