mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-24 16:30:41 +08:00
opengl: SetViewport no longer returns error
This commit is contained in:
@@ -254,10 +254,9 @@ func (c *Context) NewFramebuffer(t Texture) (Framebuffer, error) {
|
||||
return Framebuffer{f}, nil
|
||||
}
|
||||
|
||||
func (c *Context) setViewportImpl(width, height int) error {
|
||||
func (c *Context) setViewportImpl(width, height int) {
|
||||
gl := c.gl
|
||||
gl.Viewport(0, 0, width, height)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Context) FillFramebuffer(r, g, b, a float64) error {
|
||||
|
||||
Reference in New Issue
Block a user