summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-12 11:38:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-14 23:46:14 +0000
commit82bfbf1f459d540b0e204bb873ca5786997b24da (patch)
tree3b409db10a77d10f52a3ce45f135a423d8ff2da1 /gfx/models
parentFix type of SceneShader (diff)
downloadilt-82bfbf1f459d540b0e204bb873ca5786997b24da.tar.bz2
ilt-82bfbf1f459d540b0e204bb873ca5786997b24da.tar.xz
ilt-82bfbf1f459d540b0e204bb873ca5786997b24da.zip
Refactor for per window context and more setup to the right places
Diffstat (limited to 'gfx/models')
-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 ff38d0f..ab1a5fe 100644
--- a/gfx/models/texture.cpp
+++ b/gfx/models/texture.cpp
@@ -23,6 +23,7 @@ Texture::Texture(const Image & tex) :
Texture::Texture(GLsizei width, GLsizei height, const void * data)
{
glBindTexture(GL_TEXTURE_2D, m_texture);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);