fix webview resize (#6340)

This commit is contained in:
haiwwkes
2025-12-16 00:07:28 +05:30
committed by GitHub
parent d161c3b3b8
commit cfefd760e2
2 changed files with 2 additions and 1 deletions

View File

@@ -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");

View File

@@ -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)