Skip to content

Commit 4b8c8aa

Browse files
authored
Merge pull request cogentcore#5 from erikdubbelboer/fix-RenderPassEncoder-End
Make RenderPassEncoder.End() the same for different builds
2 parents 044901a + e0d406b commit 4b8c8aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wgpu/render_pass_js.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ func (g RenderPassEncoder) DrawIndexed(indexCount uint32, instanceCount uint32,
8181

8282
// End as described:
8383
// https://gpuweb.github.io/gpuweb/#dom-gpurenderpassencoder-end
84-
func (g RenderPassEncoder) End() {
84+
func (g RenderPassEncoder) End() error {
8585
g.jsValue.Call("end")
86+
return nil
8687
}
8788

8889
func (g RenderPassEncoder) Release() {} // no-op

0 commit comments

Comments
 (0)