]> git.sesse.net Git - nageru/blobdiff - nageru/mixer.cpp
Remove unused OpenGL surface(s).
[nageru] / nageru / mixer.cpp
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);