Skip to content

Commit

Permalink
Updated out of date comment related to texture format.
Browse files Browse the repository at this point in the history
  • Loading branch information
NogginBops authored Apr 11, 2023
1 parent 9359546 commit e4f2617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Texture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4f2617

Please sign in to comment.