LearnOpenTK icon indicating copy to clipboard operation
LearnOpenTK copied to clipboard

Texture.cs class loads Textures upside down

Open Journeyman1337 opened this issue 4 years ago • 0 comments

OpenGL loads textures upside down by default, and the Texture.cs texture is not flipped before it is loaded. When you run the application this causes the textures to be rendered upside down.

Putting this on line 27 should fix this problem:

image.RotateFlip(RotateFlipType.RotateNoneFlipY);

Journeyman1337 avatar Mar 27 '20 20:03 Journeyman1337