summaryrefslogtreecommitdiffstats
path: root/src/TextureAtlas.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 03:37:09 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-09 03:37:09 +0200
commit01a40b8f8995b035b293028449f1afc24906b9be (patch)
tree8069c090f165c05880a2bb6be5d01af4dbb3c1f1 /src/TextureAtlas.cpp
parentImplemented Creative Flight (diff)
downloadAltCraft-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 'src/TextureAtlas.cpp')
-rw-r--r--src/TextureAtlas.cpp2
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();
}