graphics: Remove Finalize

This commit is contained in:
Hajime Hoshi
2016-06-30 00:21:47 +09:00
parent 328ef85606
commit ff30f01c1b
4 changed files with 0 additions and 51 deletions

View File

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