mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 21:07:01 +00:00
GDI+ bitmaps are stored as Bgra, not Rgba.
This commit is contained in:
parent
79c7f64f7f
commit
6e5056e7aa
|
@ -136,7 +136,7 @@ namespace OpenTK.Graphics
|
||||||
GL.TexSubImage2D(TextureTarget.Texture2D, mipLevel,
|
GL.TexSubImage2D(TextureTarget.Texture2D, mipLevel,
|
||||||
target.Left, target.Top,
|
target.Left, target.Top,
|
||||||
target.Width, target.Height,
|
target.Width, target.Height,
|
||||||
OpenTK.Graphics.PixelFormat.Rgba,
|
OpenTK.Graphics.PixelFormat.Bgra,
|
||||||
PixelType.UnsignedByte, data.Scan0);
|
PixelType.UnsignedByte, data.Scan0);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|
Loading…
Reference in a new issue