]> git.sesse.net Git - nageru/commitdiff
Fix another lingering reconfigure bug; the previous fix was incomplete.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 24 May 2020 21:23:27 +0000 (23:23 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 24 May 2020 21:23:27 +0000 (23:23 +0200)
nageru/pbo_frame_allocator.cpp

index d7cd818d15d614ba96d1d049e9bb36afbdc01e36..37ce2a5a45463b026873df3453be8eceeb3ec14e 100644 (file)
@@ -236,7 +236,7 @@ void PBOFrameAllocator::destroy_frame(Frame *frame)
        check_error();
        glDeleteBuffers(1, &pbo);
        check_error();
-       switch (pixel_format) {
+       switch (ud->pixel_format) {
        case bmusb::PixelFormat_10BitYCbCr:
                glDeleteTextures(2, ud->tex_v210);
                check_error();