Merge pull request #6909 from Twiglet1022/fix-freeze-on-disabling-gpu-plugin

Fix freeze on disabling GPU plugin
This commit is contained in:
Adam
2018-12-11 18:50:14 -05:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -53,4 +53,6 @@ public interface GameEngine
boolean isClientThread();
void resizeCanvas();
void setReplaceCanvasNextFrame(boolean replace);
}

View File

@@ -420,6 +420,8 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
// force main buffer provider rebuild to turn off alpha channel
client.resizeCanvas();
client.setReplaceCanvasNextFrame(true);
});
}