X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture.cpp;h=3adc511e23ca2640d0ed7e5a4fc6644b50a65c40;hp=5197b3da4bd7461564305e8d9f7ffa7e8312a794;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hpb=94969468a611b0d968021479b60e3f039e348c85 diff --git a/source/core/texture.cpp b/source/core/texture.cpp index 5197b3da..3adc511e 100644 --- a/source/core/texture.cpp +++ b/source/core/texture.cpp @@ -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()