Skip to content

Commit

Permalink
Merge pull request #4007 from marcosantos98/fix-wasm
Browse files Browse the repository at this point in the history
Fix: compilation error when using BufferSubDataSlice in webgl package
  • Loading branch information
Kelimion authored Aug 2, 2024
2 parents 8359995 + 3bfccde commit 8e8660f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/wasm/WebGL/webgl.odin
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8e8660f

Please sign in to comment.