Skip to content

Commit e226534

Browse files
authored
Merge pull request #5 from erikdubbelboer/fix-RenderPassEncoder-End
Make RenderPassEncoder.End() the same for different builds
2 parents 9faea5a + dd09dbf commit e226534

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)