From 3bfccde6f9f8344d82def69f7a9c2745e486c433 Mon Sep 17 00:00:00 2001 From: marcosantos98 Date: Fri, 2 Aug 2024 10:50:16 +0100 Subject: [PATCH] Fix: remove extra `usage` in webgl.odin:250 Compilation error when using webgl.BufferSubDataSlice. The `usage` parameter is nowhere to be found. This is probably a copy-pasta leftover. --- vendor/wasm/WebGL/webgl.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/wasm/WebGL/webgl.odin b/vendor/wasm/WebGL/webgl.odin index 0ecfa864429..389e729de3a 100644 --- a/vendor/wasm/WebGL/webgl.odin +++ b/vendor/wasm/WebGL/webgl.odin @@ -247,7 +247,7 @@ BufferDataSlice :: proc "contextless" (target: Enum, slice: $S/[]$E, usage: Enum BufferData(target, len(slice)*size_of(E), raw_data(slice), usage) } BufferSubDataSlice :: proc "contextless" (target: Enum, offset: uintptr, slice: $S/[]$E) { - BufferSubData(target, offset, len(slice)*size_of(E), raw_data(slice), usage) + BufferSubData(target, offset, len(slice)*size_of(E), raw_data(slice)) } CompressedTexImage2DSlice :: proc "contextless" (target: Enum, level: i32, internalformat: Enum, width, height: i32, border: i32, slice: $S/[]$E) {