diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-09 03:37:09 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-09 03:37:09 +0200 |
commit | 01a40b8f8995b035b293028449f1afc24906b9be (patch) | |
tree | 8069c090f165c05880a2bb6be5d01af4dbb3c1f1 /src/TextureAtlas.cpp | |
parent | Implemented Creative Flight (diff) | |
download | AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.tar AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.tar.gz AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.tar.bz2 AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.tar.lz AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.tar.xz AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.tar.zst AltCraft-01a40b8f8995b035b293028449f1afc24906b9be.zip |
Diffstat (limited to '')
-rw-r--r-- | src/TextureAtlas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TextureAtlas.cpp b/src/TextureAtlas.cpp index ad62073..406418f 100644 --- a/src/TextureAtlas.cpp +++ b/src/TextureAtlas.cpp @@ -106,7 +106,7 @@ TextureAtlas::TextureAtlas(std::vector<TextureData> &textures) { } } glTexSubImage3D(GL_TEXTURE_2D_ARRAY, 0, textureCoords[i].pixelX, textureSize - textureCoords[i].pixelY - textureCoords[i].pixelH, textureCoords[i].layer, - textureCoords[i].pixelW, textureCoords[i].pixelH, 1, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8, textures[i].data.data()); + textureCoords[i].pixelW, textureCoords[i].pixelH, 1, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, textures[i].data.data()); glCheckError(); } |