opengl: Remove unneeded access to a member

This commit is contained in:
Hajime Hoshi 2016-06-01 02:06:13 +09:00
parent 5638bb93f5
commit d756d35b59

View File

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