diff options
Diffstat (limited to 'src/TextureAtlas.cpp')
-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(); } |