mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
webgpu: fix cstring as parameter not loading correctly
This commit is contained in:
@@ -110,7 +110,10 @@ class WasmMemoryInterface {
|
||||
}
|
||||
|
||||
loadCstring(ptr) {
|
||||
const start = this.loadPtr(ptr);
|
||||
return this.loadCstringDirect(this.loadPtr(ptr));
|
||||
}
|
||||
|
||||
loadCstringDirect(start) {
|
||||
if (start == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user