Revert "renderer: if texture is null, don't allocate a frame unless exporting"

This reverts commit 8e0c86a6fa.

Fixes #1209
This commit is contained in:
itsmattkc
2020-09-21 17:28:28 +10:00
parent 90f28b6853
commit 871bc08c12
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ void RenderWorker::RenderFrame(RenderTicketPtr ticket, ViewerOutput* viewer, con
FramePtr frame = Frame::Create();
frame->set_timestamp(time);
if (video_force_download_resolution_) {
if (video_force_download_resolution_ || texture.isNull()) {
// If we're setting the resolution ourselves or we're zeroing it out, allocate the frame now
frame->set_video_params(VideoParams(video_params_.width(),
video_params_.height(),
+1 -5
View File
@@ -99,11 +99,7 @@ void ViewerDisplayWidget::SetSignalCursorColorEnabled(bool e)
void ViewerDisplayWidget::SetImage(FramePtr in_buffer)
{
if (in_buffer && in_buffer->is_allocated()) {
last_loaded_buffer_ = in_buffer;
} else {
last_loaded_buffer_ = nullptr;
}
last_loaded_buffer_ = in_buffer;
if (last_loaded_buffer_) {
makeCurrent();