opengl: Remove (*Program).Equals

This commit is contained in:
Hajime Hoshi 2016-05-15 02:37:25 +09:00
parent a3272d0b49
commit ebe6296222
4 changed files with 1 additions and 16 deletions

View File

@ -32,11 +32,6 @@ type Buffer uint32
var ZeroFramebuffer Framebuffer
// TODO: Remove this after the GopherJS bug was fixed (#159)
func (p Program) Equals(other Program) bool {
return p == other
}
type uniformLocation int32
type attribLocation int32

View File

@ -45,11 +45,6 @@ type Buffer struct {
*js.Object
}
// TODO: Remove this after the GopherJS bug was fixed (#159)
func (p Program) Equals(other Program) bool {
return p.Object == other.Object
}
type uniformLocation struct {
*js.Object
}

View File

@ -31,11 +31,6 @@ type Buffer mgl.Buffer
var ZeroFramebuffer Framebuffer
// TODO: Remove this after the GopherJS bug was fixed (#159)
func (p Program) Equals(other Program) bool {
return p == other
}
type uniformLocation mgl.Uniform
type attribLocation mgl.Attrib

View File

@ -112,7 +112,7 @@ type programContext struct {
func (p *programContext) begin() {
c := p.context
if !p.state.lastProgram.Equals(p.program) {
if p.state.lastProgram != p.program {
c.UseProgram(p.program)
p.state.lastProgram = p.state.programTexture
p.state.lastProjectionMatrix = nil