mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48: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) {
|
func (c *Context) bindFramebuffer(f Framebuffer) {
|
||||||
gl := c.gl
|
gl := c.gl
|
||||||
// TODO: Fix this after the GopherJS bug was fixed (#159)
|
if c.lastFramebuffer != f {
|
||||||
if c.lastFramebuffer.Object != f.Object {
|
|
||||||
gl.BindFramebuffer(gl.FRAMEBUFFER, f.Object)
|
gl.BindFramebuffer(gl.FRAMEBUFFER, f.Object)
|
||||||
c.lastFramebuffer = f
|
c.lastFramebuffer = f
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user