Move the GL_UNPACK_ALIGNMENT setting into the texture creation, so that clients won...
[movit] / ycbcr_input.cpp
index 268abcb..8d58c7d 100644 (file)
@@ -49,6 +49,9 @@ YCbCrInput::~YCbCrInput()
 
 void YCbCrInput::finalize()
 {
+       glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+       check_error();
+
        // Create PBOs to hold the textures holding the input image, and then the texture itself.
        glGenBuffers(3, pbos);
        check_error();