func (f *framebuffer) setAsViewport(context *opengl.Context) error { width := viewportSize height := viewportSize return context.SetViewport(f.native, width, height) }
func (f *Framebuffer) setAsViewport(c *opengl.Context) error { width := NextPowerOf2Int(f.width) height := NextPowerOf2Int(f.height) return c.SetViewport(f.native, width, height) }