contextless fixes for js
This commit is contained in:
1 parent
7c93a5ae80
commit
804984ed35
4 files changed
+6
-6
No files matched your search
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