]> git.sesse.net Git - nageru/commitdiff
Remove unused OpenGL surface(s).
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 13 May 2024 18:11:14 +0000 (20:11 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 13 May 2024 18:11:14 +0000 (20:11 +0200)
nageru/mixer.cpp
nageru/mixer.h

index b3e60feba560a261d25e63b2fc2fc42c99505bc3..78f9ebfcb497d52486db9a7c4430515ce653642c 100644 (file)
@@ -646,9 +646,6 @@ void Mixer::configure_card(unsigned card_index, CaptureInterface *capture, CardT
                        card->frame_allocator->reconfigure(pixel_format, FRAME_SIZE, global_flags.width, global_flags.height, card_index, mjpeg_encoder.get());
                }
                card->capture->set_video_frame_allocator(card->frame_allocator.get());
-               if (card->surface == nullptr) {
-                       card->surface = create_surface_with_same_format(mixer_surface);
-               }
                while (!card->new_frames.empty()) card->new_frames.pop_front();
                card->last_timecode = -1;
                card->capture->set_pixel_format(pixel_format);
index 5549a245064d613a0632cdd3e8b4786a2fcde8ff..c42d8f1a44c4f0a104201c2c8d631db317f73d33 100644 (file)
@@ -478,9 +478,6 @@ private:
 
                std::unique_ptr<PBOFrameAllocator> frame_allocator;
 
-               // Stuff for the OpenGL context (for texture uploading).
-               QSurface *surface = nullptr;
-
                struct NewFrame {
                        RefCountedFrame frame;
                        int64_t length;  // In TIMEBASE units.