diff --git a/internal/ui/context.go b/internal/ui/context.go index 32629aa5742c..5c54c66532b7 100644 --- a/internal/ui/context.go +++ b/internal/ui/context.go @@ -84,9 +84,6 @@ func (c *context) forceUpdateFrame(graphicsDriver graphicsdriver.Graphics, outsi } func (c *context) updateFrameImpl(graphicsDriver graphicsdriver.Graphics, updateCount int, outsideWidth, outsideHeight float64, deviceScaleFactor float64, ui *UserInterface, forceDraw bool, swapBuffersForGL func()) (err error) { - ui.beginFrame() - defer ui.endFrame() - // The given outside size can be 0 e.g. just after restoring from the fullscreen mode on Windows (#1589) // Just ignore such cases. Otherwise, creating a zero-sized framebuffer causes a panic. if outsideWidth == 0 || outsideHeight == 0 { diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 76b53ee10e85..2cdad9ce6295 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -930,12 +930,6 @@ func (u *UserInterface) createWindow() error { return nil } -func (u *UserInterface) beginFrame() { -} - -func (u *UserInterface) endFrame() { -} - // registerWindowCloseCallback must be called from the main thread. func (u *UserInterface) registerWindowCloseCallback() error { if u.closeCallback == nil { diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index b9dd6a710e91..08285167d7f0 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -814,12 +814,6 @@ func (u *UserInterface) Monitor() *Monitor { return theMonitor } -func (u *UserInterface) beginFrame() { -} - -func (u *UserInterface) endFrame() { -} - func (u *UserInterface) updateIconIfNeeded() error { return nil } diff --git a/internal/ui/ui_mobile.go b/internal/ui/ui_mobile.go index 46f4088bdd17..fbf1fba53a4d 100644 --- a/internal/ui/ui_mobile.go +++ b/internal/ui/ui_mobile.go @@ -481,12 +481,6 @@ func (u *UserInterface) ScheduleFrame() { } } -func (u *UserInterface) beginFrame() { -} - -func (u *UserInterface) endFrame() { -} - func (u *UserInterface) updateIconIfNeeded() error { return nil } diff --git a/internal/ui/ui_nintendosdk.go b/internal/ui/ui_nintendosdk.go index 6d19d1692e14..ab787ccd4e5c 100644 --- a/internal/ui/ui_nintendosdk.go +++ b/internal/ui/ui_nintendosdk.go @@ -177,12 +177,6 @@ func (*UserInterface) Window() Window { return &nullWindow{} } -func (u *UserInterface) beginFrame() { -} - -func (u *UserInterface) endFrame() { -} - func (u *UserInterface) updateIconIfNeeded() error { return nil } diff --git a/internal/ui/ui_playstation5.go b/internal/ui/ui_playstation5.go index 47efaa6b4e72..5038efea6686 100644 --- a/internal/ui/ui_playstation5.go +++ b/internal/ui/ui_playstation5.go @@ -150,12 +150,6 @@ func (*UserInterface) Window() Window { return &nullWindow{} } -func (u *UserInterface) beginFrame() { -} - -func (u *UserInterface) endFrame() { -} - func (u *UserInterface) updateIconIfNeeded() error { return nil }