internal/graphicsdriver/opengl: remove an unused member gl.getBufferSubData

This commit is contained in:
Hajime Hoshi 2022-05-24 20:40:53 +09:00
parent f888b7868b
commit a1370a4791

View File

@ -53,7 +53,6 @@ type gl struct {
framebufferRenderbuffer js.Value
framebufferTexture2D js.Value
flush js.Value
getBufferSubData js.Value
getExtension js.Value
getParameter js.Value
getProgramInfoLog js.Value
@ -168,9 +167,7 @@ func (c *context) newGL(v js.Value) *gl {
vertexAttribPointer: v.Get("vertexAttribPointer").Call("bind", v),
viewport: v.Get("viewport").Call("bind", v),
}
if c.usesWebGL2() {
g.getExtension = v.Get("getBufferSubData").Call("bind", v)
} else {
if !c.usesWebGL2() {
g.getExtension = v.Get("getExtension").Call("bind", v)
}
return g