Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8bfe25

Browse files
author
Joseph Hager
committed
Change BufferData to use interface{}
1 parent 58868bc commit a8bfe25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webgl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ func (c *Context) BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha int) {
447447

448448
// Creates a buffer in memory and initializes it with array data.
449449
// If no array is provided, the contents of the buffer is initialized to 0.
450-
func (c *Context) BufferData(target int, data js.Object, usage int) {
450+
func (c *Context) BufferData(target int, data interface{}, usage int) {
451451
c.Call("bufferData", target, data, usage)
452452
}
453453

454454
// Used to modify or update some or all of a data store for a bound buffer object.
455-
func (c *Context) BufferSubData(target int, offset int, data js.Object) {
455+
func (c *Context) BufferSubData(target int, offset int, data interface{}) {
456456
c.Call("bufferSubData", target, offset, data)
457457
}
458458

0 commit comments

Comments
 (0)