We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677acae commit 275e67cCopy full SHA for 275e67c
src/SimulationFramework.SkiaSharp/SkiaTexture.cs
@@ -34,6 +34,7 @@ public unsafe SkiaTexture(SkiaGraphicsProvider provider, int width, int height,
34
this.colors = new Color[width * height];
35
gl.BindTexture(GLEnum.Texture2D, glTexture);
36
gl.TexImage2D<Color>(GLEnum.Texture2D, 0, (int)SizedInternalFormat.Rgba8, (uint)width, (uint)height, 0, PixelFormat.Rgba, PixelType.UnsignedByte, this.colors.AsSpan());
37
+ gl.TexParameterI(GLEnum.Texture2D, TextureParameterName.TextureMinFilter, (uint)GLEnum.Nearest);
38
39
backendTexture = new GRBackendTexture(width, height, false, new((uint)GLEnum.Texture2D, glTexture, (uint)SizedInternalFormat.Rgba8));
40
0 commit comments