mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
internal/ui: remove unnecessary swapBuffer call
This was introduced at 9e161864f6
, the
background is now unclear. Things work even without this hack.
Updates #157
Updates #158
This commit is contained in:
parent
42c08698fb
commit
b597ed1e27
@ -1184,10 +1184,6 @@ func (u *userInterfaceImpl) setWindowSizeInDIP(width, height int, callSetSize bo
|
||||
u.origWindowWidthInDIP = width
|
||||
u.origWindowHeightInDIP = height
|
||||
|
||||
// To make sure the current existing framebuffers are rendered,
|
||||
// swap buffers here before SetSize is called.
|
||||
u.swapBuffers()
|
||||
|
||||
if !u.isFullscreen() && callSetSize {
|
||||
// Set the window size after the position. The order matters.
|
||||
// In the opposite order, the window size might not be correct when going back from fullscreen with multi monitors.
|
||||
|
Loading…
Reference in New Issue
Block a user