X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture.cpp;h=3adc511e23ca2640d0ed7e5a4fc6644b50a65c40;hb=a92362ad19b65f66b98e0dc4d034da5e4eb5cf36;hp=5197b3da4bd7461564305e8d9f7ffa7e8312a794;hpb=9b3bce7ae76ff8c0c81315d2505ea96bf422a318;p=libs%2Fgl.git 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()