aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Zylinski <karl@zylinski.se>2025-12-29 17:34:01 +0100
committerKarl Zylinski <karl@zylinski.se>2025-12-29 17:34:01 +0100
commit3f9aefda202f9677987d72c0be52417772315edc (patch)
tree3ba707ebb158d5fb4d457242e789ab39660f8276
parent159eab133b4b6dc9df6896d003134c1f0ccfde92 (diff)
Added CheckFramebufferStatus to WebGL bindings
-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) ---