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:
LoparPanda 2024-10-07 23:42:50 -07:00 committed by GitHub
parent 5bcfdee75f
commit 5245537e21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {