Browse Source

turn of antialiasing.

pull/7029/head
Dan Walmsley 5 years ago
parent
commit
0a26d62b83
  1. 1
      src/Web/Avalonia.Web.Blazor/AvaloniaView.razor.cs
  2. 4
      src/Web/Avalonia.Web.Blazor/Interop/Typescript/SKHtmlCanvas.ts

1
src/Web/Avalonia.Web.Blazor/AvaloniaView.razor.cs

@ -289,7 +289,6 @@ namespace Avalonia.Web.Blazor
_initialised = true; _initialised = true;
await Task.Delay(250); // without this we get some kind of initialisation error with gl
_topLevel.Prepare(); _topLevel.Prepare();
_topLevel.Renderer.Start(); _topLevel.Renderer.Start();

4
src/Web/Avalonia.Web.Blazor/Interop/Typescript/SKHtmlCanvas.ts

@ -200,7 +200,7 @@ export class SKHtmlCanvas {
alpha: 1, alpha: 1,
depth: 1, depth: 1,
stencil: 8, stencil: 8,
antialias: 1, antialias: 0,
premultipliedAlpha: 1, premultipliedAlpha: 1,
preserveDrawingBuffer: 0, preserveDrawingBuffer: 0,
preferLowPowerToHighPerformance: 0, preferLowPowerToHighPerformance: 0,
@ -209,7 +209,7 @@ export class SKHtmlCanvas {
minorVersion: 0, minorVersion: 0,
enableExtensionsByDefault: 1, enableExtensionsByDefault: 1,
explicitSwapControl: 0, explicitSwapControl: 0,
renderViaOffscreenBackBuffer: 0, renderViaOffscreenBackBuffer: 1,
}; };
let ctx: WebGLRenderingContext = GL.createContext(htmlCanvas, contextAttributes); let ctx: WebGLRenderingContext = GL.createContext(htmlCanvas, contextAttributes);

Loading…
Cancel
Save