16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 18:19:19 +02:00

properly load tga with top-left origin

This commit is contained in:
milek7
2018-01-29 22:14:36 +01:00
parent 07b0ac6a95
commit 1c43c24be3
3 changed files with 39 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ private:
void downsize( GLuint const Format );
// members
std::vector<char> data; // texture data
std::vector<char> data; // texture data (stored GL-style, bottom-left origin)
resource_state data_state{ resource_state::none }; // current state of texture data
int data_width{ 0 },
data_height{ 0 },