From 97a9e9911264d14931feb669ba5d57a62a5361bc Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 3 Nov 2018 04:08:00 +0900 Subject: [PATCH] opengl: Rename: BindScreenFramebuffer -> BeforeSwapping --- internal/opengl/context_desktop.go | 2 +- internal/ui/ui_glfw.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/opengl/context_desktop.go b/internal/opengl/context_desktop.go index 6d97b84af..a79ab68d7 100644 --- a/internal/opengl/context_desktop.go +++ b/internal/opengl/context_desktop.go @@ -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) } diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 72c79f460..7e80d1ec9 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -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 {