]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.cpp
Remove the PixelStore class
[libs/gl.git] / source / core / texture.cpp
index 5197b3da4bd7461564305e8d9f7ffa7e8312a794..3adc511e23ca2640d0ed7e5a4fc6644b50a65c40 100644 (file)
@@ -35,6 +35,13 @@ Texture::Texture(GLenum t, ResourceManager *m):
                set_manager(m);
        else
                generate_id();
+
+       static bool alignment_init = false;
+       if(!alignment_init)
+       {
+               glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+               alignment_init = true;
+       }
 }
 
 Texture::~Texture()