mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
opengl: Remove (*Program).Equals
This commit is contained in:
parent
a3272d0b49
commit
ebe6296222
@ -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
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user