aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/sys/wasm/js/odin.js3
-rw-r--r--vendor/wasm/WebGL/webgl.odin1
2 files changed, 4 insertions, 0 deletions
diff --git a/core/sys/wasm/js/odin.js b/core/sys/wasm/js/odin.js
index 0c617dd8e..e90ccc124 100644
--- a/core/sys/wasm/js/odin.js
+++ b/core/sys/wasm/js/odin.js
@@ -616,6 +616,9 @@ class WebGLInterface {
FramebufferTexture2D: (target, attachment, textarget, texture, level) => {
this.ctx.framebufferTexture2D(target, attachment, textarget, this.textures[texture], level);
},
+ CheckFramebufferStatus: (target) => {
+ return this.ctx.checkFramebufferStatus(target)
+ },
FrontFace: (mode) => {
this.ctx.frontFace(mode);
},
diff --git a/vendor/wasm/WebGL/webgl.odin b/vendor/wasm/WebGL/webgl.odin
index 601071c3a..d607ec743 100644
--- a/vendor/wasm/WebGL/webgl.odin
+++ b/vendor/wasm/WebGL/webgl.odin
@@ -113,6 +113,7 @@ foreign webgl {
Flush :: proc() ---
FramebufferRenderbuffer :: proc(target, attachment, renderbufertarget: Enum, renderbuffer: Renderbuffer) ---
FramebufferTexture2D :: proc(target, attachment, textarget: Enum, texture: Texture, level: i32) ---
+ CheckFramebufferStatus :: proc(target: Enum) -> Enum ---
FrontFace :: proc(mode: Enum) ---
GenerateMipmap :: proc(target: Enum) ---