Skip to content

Commit 220b238

Browse files
committed
fix Wayland OpenGL glitchiness
1 parent f8c4ab8 commit 220b238

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/frontend/qt_sdl/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ int main(int argc, char** argv)
346346
}
347347
}
348348

349+
// fix for Wayland OpenGL glitches
350+
QGuiApplication::setAttribute(Qt::AA_NativeWindows, false);
351+
QGuiApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings, true);
352+
349353
// default MP interface type is local MP
350354
// this will be changed if a LAN or netplay session is initiated
351355
setMPInterface(MPInterface_Local);

0 commit comments

Comments
 (0)