mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/opengl: remove an unused member gl.getBufferSubData
This commit is contained in:
parent
f888b7868b
commit
a1370a4791
@ -53,7 +53,6 @@ type gl struct {
|
|||||||
framebufferRenderbuffer js.Value
|
framebufferRenderbuffer js.Value
|
||||||
framebufferTexture2D js.Value
|
framebufferTexture2D js.Value
|
||||||
flush js.Value
|
flush js.Value
|
||||||
getBufferSubData js.Value
|
|
||||||
getExtension js.Value
|
getExtension js.Value
|
||||||
getParameter js.Value
|
getParameter js.Value
|
||||||
getProgramInfoLog js.Value
|
getProgramInfoLog js.Value
|
||||||
@ -168,9 +167,7 @@ func (c *context) newGL(v js.Value) *gl {
|
|||||||
vertexAttribPointer: v.Get("vertexAttribPointer").Call("bind", v),
|
vertexAttribPointer: v.Get("vertexAttribPointer").Call("bind", v),
|
||||||
viewport: v.Get("viewport").Call("bind", v),
|
viewport: v.Get("viewport").Call("bind", v),
|
||||||
}
|
}
|
||||||
if c.usesWebGL2() {
|
if !c.usesWebGL2() {
|
||||||
g.getExtension = v.Get("getBufferSubData").Call("bind", v)
|
|
||||||
} else {
|
|
||||||
g.getExtension = v.Get("getExtension").Call("bind", v)
|
g.getExtension = v.Get("getExtension").Call("bind", v)
|
||||||
}
|
}
|
||||||
return g
|
return g
|
||||||
|
Loading…
Reference in New Issue
Block a user