mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
opengl: Refactoring: Remove unneeded code
This commit is contained in:
parent
d756d35b59
commit
3dfbb4a2ea
@ -211,13 +211,6 @@ func (c *Context) NewFramebuffer(t Texture) (Framebuffer, error) {
|
||||
}
|
||||
|
||||
func (c *Context) SetViewport(f Framebuffer, width, height int) error {
|
||||
// TODO: Not sure if Flush is needed here.
|
||||
if f.Object == nil {
|
||||
c.bindFramebuffer(f)
|
||||
gl := c.gl
|
||||
gl.Viewport(0, 0, width, height)
|
||||
return nil
|
||||
}
|
||||
c.bindFramebuffer(f)
|
||||
gl := c.gl
|
||||
gl.Viewport(0, 0, width, height)
|
||||
|
Loading…
Reference in New Issue
Block a user