opentk / LearnOpenTK

A port of learnopengl.com's tutorials to OpenTK and C#.
Creative Commons Attribution 4.0 International
459 stars 115 forks source link

Texture.cs class loads Textures upside down #33

Open Journeyman1337 opened 4 years ago

Journeyman1337 commented 4 years ago

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);