mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
fix webview resize (#6340)
This commit is contained in:
@@ -41,7 +41,7 @@ namespace Robust.Client.WebView.Cef
|
||||
// commandLine.AppendSwitch("--single-process");
|
||||
|
||||
//commandLine.AppendSwitch("--disable-gpu");
|
||||
//commandLine.AppendSwitch("--disable-gpu-compositing");
|
||||
commandLine.AppendSwitch("--disable-gpu-compositing");
|
||||
//commandLine.AppendSwitch("--in-process-gpu");
|
||||
|
||||
commandLine.AppendSwitch("--off-screen-rendering-enabled");
|
||||
|
||||
@@ -392,6 +392,7 @@ namespace Robust.Client.WebView.Cef
|
||||
_data.Browser.GetHost().WasResized();
|
||||
_data.Texture.Dispose();
|
||||
_data.Texture = _clyde.CreateBlankTexture<Rgba32>((Owner.PixelWidth, Owner.PixelHeight));
|
||||
_data.Browser.GetHost().Invalidate(CefPaintElementType.View);
|
||||
}
|
||||
|
||||
public void Draw(DrawingHandleScreen handle)
|
||||
|
||||
Reference in New Issue
Block a user