Merge pull request #6909 from Twiglet1022/fix-freeze-on-disabling-gpu-plugin
Fix freeze on disabling GPU plugin
This commit is contained in:
@@ -53,4 +53,6 @@ public interface GameEngine
|
||||
boolean isClientThread();
|
||||
|
||||
void resizeCanvas();
|
||||
|
||||
void setReplaceCanvasNextFrame(boolean replace);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user