summaryrefslogtreecommitdiff
path: root/gfx/models/texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/models/texture.cpp')
-rw-r--r--gfx/models/texture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/models/texture.cpp b/gfx/models/texture.cpp
index 3b27e77..6319eb8 100644
--- a/gfx/models/texture.cpp
+++ b/gfx/models/texture.cpp
@@ -70,6 +70,7 @@ Texture::save(
.size = size,
.pixelDepth = static_cast<uint8_t>(8 * channels),
};
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
glGetTextureImage(texture, 0, format, type, static_cast<GLsizei>(dataSize), tga.get<TGAHead>() + 1);
tga.msync(MS_ASYNC);
}