diff --git a/src/plugins/screencast/windowscreencastsource.cpp b/src/plugins/screencast/windowscreencastsource.cpp index eabc94b7e7..f2a1432e4d 100644 --- a/src/plugins/screencast/windowscreencastsource.cpp +++ b/src/plugins/screencast/windowscreencastsource.cpp @@ -59,7 +59,7 @@ qreal WindowScreenCastSource::devicePixelRatio() const void WindowScreenCastSource::render(QImage *target) { - const auto offscreenTexture = GLTexture::allocate(GL_RGBA8, textureSize()); + const auto offscreenTexture = GLTexture::allocate(GL_RGBA8, target->size()); if (!offscreenTexture) { return; }