mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
opengl: Rename: BindScreenFramebuffer -> BeforeSwapping
This commit is contained in:
parent
841353670f
commit
97a9e99112
@ -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)
|
c.bindFramebuffer(c.screenFramebuffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -681,7 +681,7 @@ func (u *userInterface) loop(g GraphicsContext) error {
|
|||||||
|
|
||||||
// The bound framebuffer must be the original screen framebuffer
|
// The bound framebuffer must be the original screen framebuffer
|
||||||
// before swapping buffers.
|
// before swapping buffers.
|
||||||
opengl.GetContext().BindScreenFramebuffer()
|
opengl.GetContext().BeforeSwapping()
|
||||||
|
|
||||||
_ = u.runOnMainThread(func() error {
|
_ = u.runOnMainThread(func() error {
|
||||||
if !vsync {
|
if !vsync {
|
||||||
|
Loading…
Reference in New Issue
Block a user