gpu: queue fbo reset on startup too

Startup races with stretch mode plugin startup and clientui startup, so starting with stretched mode on doesn't reliably work. Just reset a few frames after startup to be sure.
This commit is contained in:
Adam
2021-12-27 16:22:36 -05:00
parent 153b475301
commit 637ee563d6

View File

@@ -473,6 +473,7 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
if (OSType.getOSType() == OSType.MacOS)
{
SwingUtilities.invokeAndWait(() -> ((Component) client).addComponentListener(resizeListener));
needsReset = 5; // plugin startup races with ClientUI positioning, so do a reset in a little bit
}
}
catch (Throwable e)