opengl: SetViewport no longer returns error

This commit is contained in:
Hajime Hoshi
2017-09-25 00:17:07 +09:00
parent b590005c7a
commit d455b9b8bb
6 changed files with 14 additions and 22 deletions

View File

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