GDI+ bitmaps are stored as Bgra, not Rgba.

This commit is contained in:
the_fiddler 2008-11-27 12:16:41 +00:00
parent 79c7f64f7f
commit 6e5056e7aa

View file

@ -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