apply the framebuffer size before calling updateMatrices()

This commit is contained in:
Konstantin Käfer
2015-05-05 11:16:02 +02:00
parent 24a0d77c83
commit 63bb10a06b

View File

@@ -203,6 +203,9 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
}
}
resize();
changeMatrix();
// Figure out what buckets we have to draw and what order we have to draw them in.
const auto order = determineRenderOrder(style);
@@ -238,8 +241,6 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
}
clear();
resize();
changeMatrix();
drawClippingMasks(sources);
}