diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-05 23:09:34 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-05 23:09:34 +0000 |
| commit | 54929a1b9212fb5b2723efde1d3c871dc4a7c4d3 (patch) | |
| tree | 22a9d2a6459af7abc44906a4024021fe1126aac0 /core/_preload.odin | |
| parent | 92780e2683927b75d2b4a35e96cf4ebe0637006c (diff) | |
Minor `context` fix
Diffstat (limited to 'core/_preload.odin')
| -rw-r--r-- | core/_preload.odin | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/_preload.odin b/core/_preload.odin index a1c4183c3..bcc9a5545 100644 --- a/core/_preload.odin +++ b/core/_preload.odin @@ -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) { |