]> git.sesse.net Git - movit/blobdiff - ycbcr_input.cpp
Move the GL_UNPACK_ALIGNMENT setting into the texture creation, so that clients won...
[movit] / ycbcr_input.cpp
index 268abcb35059cc722ea7fc1f3495a9aebda0ad02..8d58c7de8ab10c6d09adf68fa0bc8ef467f8be51 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();