Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Oct 4, 2024
1 parent 214d972 commit c6a494f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/AddIns/Uno.WinUI.Graphics3DGL/GLCanvasElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Buffer = Windows.Storage.Streams.Buffer;
#endif


namespace Uno.WinUI.Graphics3DGL;

/// <summary>
Expand Down Expand Up @@ -237,13 +236,7 @@ private unsafe void Render()
#else
Buffer.Cast(_backBuffer.PixelBuffer).ApplyActionOnRawBufferPtr(ptr =>
{
_gl.ReadPixels(0, 0, _width, _height,
#if ANDROID
GLEnum.Rgba,
#else
GLEnum.Bgra,
#endif
GLEnum.UnsignedByte, (void*)ptr);
_gl.ReadPixels(0, 0, _width, _height, GLEnum.Bgra, GLEnum.UnsignedByte, (void*)ptr);
});
_backBuffer.PixelBuffer.Length = _width * _height * BytesPerPixel;
#endif
Expand Down

0 comments on commit c6a494f

Please sign in to comment.