Minor context fix

This commit is contained in:
gingerBill
2018-02-05 23:09:34 +00:00
parent 92780e2683
commit 54929a1b92
2 changed files with 23 additions and 20 deletions
+1 -7
View File
@@ -266,13 +266,7 @@ make_source_code_location :: inline proc "contextless" (file: string, line, colu
__init_context_from_ptr :: proc "contextless" (c: ^Context, other: ^Context) {
if c == nil do return;
c^ = other^;
if c.allocator.procedure == nil {
c.allocator = default_allocator();
}
if c.thread_id == 0 {
c.thread_id = os.current_thread_id();
}
__init_context(c);
}
__init_context :: proc "contextless" (c: ^Context) {