mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
internal/graphicsdriver/opengl/gl: fixes DeleteVertexArrays removing entry from textures instead of vertexArrays value store in webgl driver (#3125)
This is just what appears to be a typo in the WebGL driver that is deleting the mapping between a uint32 ID and a JavaScript value for vertexArrays from the value store for the textures instead. This seems like it would potentially cause a crash if the numbers aligned.
This commit is contained in:
parent
5bcfdee75f
commit
5245537e21
@ -367,7 +367,7 @@ func (c *defaultContext) DeleteTexture(texture uint32) {
|
||||
|
||||
func (c *defaultContext) DeleteVertexArray(array uint32) {
|
||||
c.fnDeleteVertexArray.Invoke(c.vertexArrays.get(array))
|
||||
c.textures.delete(array)
|
||||
c.vertexArrays.delete(array)
|
||||
}
|
||||
|
||||
func (c *defaultContext) Disable(cap uint32) {
|
||||
|
Loading…
Reference in New Issue
Block a user