internal/uidriver/glfw: Skip adjusting the view size with OpenGL

This commit is contained in:
Hajime Hoshi 2021-09-18 23:59:37 +09:00
parent 188e80d2f7
commit f0395dd329

View File

@ -188,5 +188,8 @@ func (u *UserInterface) setNativeFullscreen(fullscreen bool) {
} }
func (u *UserInterface) adjustViewSize() { func (u *UserInterface) adjustViewSize() {
if u.Graphics().IsGL() {
return
}
C.adjustViewSize(C.uintptr_t(u.window.GetCocoaWindow())) C.adjustViewSize(C.uintptr_t(u.window.GetCocoaWindow()))
} }