mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
contextless fixes for js
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@ import "base:runtime"
|
||||
g_context: runtime.Context
|
||||
|
||||
@(private="file", init)
|
||||
wgpu_init_allocator :: proc() {
|
||||
wgpu_init_allocator :: proc "contextless" () {
|
||||
if g_context.allocator.procedure == nil {
|
||||
g_context = runtime.default_context()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user