mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-27 10:00:34 +08:00
graphics: Remove Finalize
This commit is contained in:
@@ -53,10 +53,6 @@ func Initialize(c *opengl.Context) error {
|
||||
return theOpenGLState.initialize(c)
|
||||
}
|
||||
|
||||
func Finalize(c *opengl.Context) error {
|
||||
return theOpenGLState.finalize(c)
|
||||
}
|
||||
|
||||
func (s *openGLState) initialize(c *opengl.Context) error {
|
||||
s.lastProgram = zeroProgram
|
||||
s.lastProjectionMatrix = nil
|
||||
@@ -102,18 +98,6 @@ func (s *openGLState) initialize(c *opengl.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *openGLState) finalize(c *opengl.Context) error {
|
||||
s.lastProgram = zeroProgram
|
||||
s.lastProjectionMatrix = nil
|
||||
s.lastModelviewMatrix = nil
|
||||
s.lastColorMatrix = nil
|
||||
s.lastColorMatrixTranslation = nil
|
||||
s.lastTexture = zeroTexture
|
||||
c.DeleteBuffer(s.indexBufferQuads)
|
||||
c.DeleteProgram(s.programTexture)
|
||||
return nil
|
||||
}
|
||||
|
||||
func areSameFloat32Array(a, b []float32) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user