mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
opengl: Remove unneeded access to a member
This commit is contained in:
parent
5638bb93f5
commit
d756d35b59
@ -159,8 +159,7 @@ func (c *Context) NewTexture(width, height int, pixels []uint8, filter Filter) (
|
||||
|
||||
func (c *Context) bindFramebuffer(f Framebuffer) {
|
||||
gl := c.gl
|
||||
// TODO: Fix this after the GopherJS bug was fixed (#159)
|
||||
if c.lastFramebuffer.Object != f.Object {
|
||||
if c.lastFramebuffer != f {
|
||||
gl.BindFramebuffer(gl.FRAMEBUFFER, f.Object)
|
||||
c.lastFramebuffer = f
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user