Move the GL_UNPACK_ALIGNMENT setting into the texture creation, so that clients won...
[movit] / demo.cpp
index 625dba6..0cc3c48 100644 (file)
--- a/demo.cpp
+++ b/demo.cpp
@@ -154,7 +154,6 @@ int main(int argc, char **argv)
        SDL_WM_SetCaption("OpenGL window", NULL);
        
        // geez 
-       glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
        glPixelStorei(GL_PACK_ALIGNMENT, 1);
 
        unsigned img_w, img_h;