From e4f2617345eac956081a3b8fdb72a0deddcfb22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4ger?= Date: Tue, 11 Apr 2023 20:45:03 +0200 Subject: [PATCH] Updated out of date comment related to texture format. --- Common/Texture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Texture.cs b/Common/Texture.cs index ca6d72c..b9bde62 100755 --- a/Common/Texture.cs +++ b/Common/Texture.cs @@ -40,7 +40,7 @@ public static Texture LoadFromFile(string path) // Width of the image // Height of the image. // Border of the image. This must always be 0; it's a legacy parameter that Khronos never got rid of. - // The format of the pixels, explained above. Since we loaded the pixels as ARGB earlier, we need to use BGRA. + // The format of the pixels, explained above. Since we loaded the pixels as RGBA earlier, we need to use PixelFormat.Rgba. // Data type of the pixels. // And finally, the actual pixels. GL.TexImage2D(TextureTarget.Texture2D, 0, PixelInternalFormat.Rgba, image.Width, image.Height, 0, PixelFormat.Rgba, PixelType.UnsignedByte, image.Data);