From 6e5056e7aaaf9a6567b5cd0423fcd6485c5473ec Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 27 Nov 2008 12:16:41 +0000 Subject: [PATCH] GDI+ bitmaps are stored as Bgra, not Rgba. --- Source/Utilities/Graphics/Texture2D.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Utilities/Graphics/Texture2D.cs b/Source/Utilities/Graphics/Texture2D.cs index 9be42a3d..53108fc8 100644 --- a/Source/Utilities/Graphics/Texture2D.cs +++ b/Source/Utilities/Graphics/Texture2D.cs @@ -136,7 +136,7 @@ namespace OpenTK.Graphics GL.TexSubImage2D(TextureTarget.Texture2D, mipLevel, target.Left, target.Top, target.Width, target.Height, - OpenTK.Graphics.PixelFormat.Rgba, + OpenTK.Graphics.PixelFormat.Bgra, PixelType.UnsignedByte, data.Scan0); } finally