opengl: Rename: BindScreenFramebuffer -> BeforeSwapping

This commit is contained in:
Hajime Hoshi 2018-11-03 04:08:00 +09:00
parent 841353670f
commit 97a9e99112
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ func (c *Context) TexSubImage2D(t Texture, p []byte, x, y, width, height int) {
})
}
func (c *Context) BindScreenFramebuffer() {
func (c *Context) BeforeSwapping() {
c.bindFramebuffer(c.screenFramebuffer)
}

View File

@ -681,7 +681,7 @@ func (u *userInterface) loop(g GraphicsContext) error {
// The bound framebuffer must be the original screen framebuffer
// before swapping buffers.
opengl.GetContext().BindScreenFramebuffer()
opengl.GetContext().BeforeSwapping()
_ = u.runOnMainThread(func() error {
if !vsync {