diff --git a/internal/glfwwin/internal_windows.go b/internal/glfwwin/internal_windows.go index bc92b6874..2bf8012c2 100644 --- a/internal/glfwwin/internal_windows.go +++ b/internal/glfwwin/internal_windows.go @@ -204,8 +204,7 @@ type Monitor struct { window *Window - modes []*VidMode - currentMode *VidMode + modes []*VidMode win32 struct { handle _HMONITOR diff --git a/internal/glfwwin/monitor_windows.go b/internal/glfwwin/monitor_windows.go index 2cdfa0e39..630f5439e 100644 --- a/internal/glfwwin/monitor_windows.go +++ b/internal/glfwwin/monitor_windows.go @@ -261,8 +261,7 @@ func (m *Monitor) GetVideoMode() (*VidMode, error) { if !_glfw.initialized { return nil, NotInitialized } - m.currentMode = m.platformGetVideoMode() - return m.currentMode, nil + return m.platformGetVideoMode(), nil } // SetGamma is not implemented.