Commit 9151bb7b authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[scenes/opengl] Provide correct viewport rect to clamp()

parent 0c719676
......@@ -2628,7 +2628,7 @@ void SceneOpenGLDecorationRenderer::render()
renderToPainter(&painter, geo);
clamp(image, QRect(viewport.topLeft(), viewport.size() * devicePixelRatio));
clamp(image, QRect(viewport.topLeft() * devicePixelRatio, viewport.size() * devicePixelRatio));
if (rotated) {
// TODO: get this done directly when rendering to the image
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment