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:
Hajime Hoshi 2022-12-29 21:48:35 +09:00
parent 42c08698fb
commit b597ed1e27

View File

@ -1184,10 +1184,6 @@ func (u *userInterfaceImpl) setWindowSizeInDIP(width, height int, callSetSize bo
u.origWindowWidthInDIP = width u.origWindowWidthInDIP = width
u.origWindowHeightInDIP = height 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 { if !u.isFullscreen() && callSetSize {
// Set the window size after the position. The order matters. // 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. // In the opposite order, the window size might not be correct when going back from fullscreen with multi monitors.