Update preview gui framebuffer size regardless of performance mode

This used to be more of an issue in the past but `displaySizeChanged` has gotten
pretty cheap by now and not updating it will basically make the rendering GUI
useless once you resize even once.
This commit is contained in:
Jonas Herzig
2020-04-17 13:54:40 +02:00
parent 059063430c
commit a733d301fd

View File

@@ -431,7 +431,7 @@ public class VideoRenderer implements RenderInfo {
} }
// Resize the GUI framebuffer if the display size changed // Resize the GUI framebuffer if the display size changed
if (!settings.isHighPerformance() && displaySizeChanged()) { if (displaySizeChanged()) {
updateDisplaySize(); updateDisplaySize();
//#if MC>=11400 //#if MC>=11400
guiFramebuffer.resize(displayWidth, displayHeight guiFramebuffer.resize(displayWidth, displayHeight