opengl: Bug fix: bindFramebufferImpl should return error

This commit is contained in:
Hajime Hoshi 2016-06-19 00:40:44 +09:00
parent bc2703c345
commit 7528977842

View File

@ -150,9 +150,10 @@ func (c *Context) NewTexture(width, height int, pixels []uint8, filter Filter) (
return Texture(t), nil
}
func (c *Context) bindFramebufferImpl(f Framebuffer) {
func (c *Context) bindFramebufferImpl(f Framebuffer) error {
gl := c.gl
gl.BindFramebuffer(mgl.FRAMEBUFFER, mgl.Framebuffer(f))
return nil
}
func (c *Context) FramebufferPixels(f Framebuffer, width, height int) ([]uint8, error) {