diff --git a/app/node/input/media/media.cpp b/app/node/input/media/media.cpp index 3cf4ee5f3..a4518f722 100644 --- a/app/node/input/media/media.cpp +++ b/app/node/input/media/media.cpp @@ -220,8 +220,8 @@ QVariant MediaInput::Value(NodeOutput *output, const rational &in, const rationa RenderTexturePtr output_texture = std::make_shared(); output_texture->Create(renderer->context(), - renderer->params().width(), - renderer->params().height(), + renderer->params().effective_width(), + renderer->params().effective_height(), renderer->params().format(), RenderTexture::kDoubleBuffer); @@ -259,8 +259,8 @@ QVariant MediaInput::Value(NodeOutput *output, const rational &in, const rationa QMatrix4x4 transform; // Scale texture to a square for incoming matrix transformation - transform.scale(2.0f / static_cast(renderer->params().width() * renderer->params().divider()), - 2.0f / static_cast(renderer->params().height() * renderer->params().divider())); + transform.scale(2.0f / static_cast(renderer->params().width()), + 2.0f / static_cast(renderer->params().height())); // Multiply by input transformation transform *= matrix_input_->get_value(in).value(); diff --git a/app/render/renderinstance.cpp b/app/render/renderinstance.cpp index e575e8d17..e48531ee6 100644 --- a/app/render/renderinstance.cpp +++ b/app/render/renderinstance.cpp @@ -74,7 +74,7 @@ bool RenderInstance::Start() buffer_.Create(ctx_); // Set viewport to the compositing dimensions - ctx_->functions()->glViewport(0, 0, params_.width(), params_.height()); + ctx_->functions()->glViewport(0, 0, params_.effective_width(), params_.effective_height()); ctx_->functions()->glEnable(GL_BLEND); // Set up default pipeline