Merge branch 'master' into feature/canvas-interaction
This commit is contained in:
commit
61c707fe04
18 changed files with 147 additions and 39 deletions
|
|
@ -355,6 +355,18 @@ impl Renderer {
|
|||
) {
|
||||
let bounds = layer.bounds * scale_factor;
|
||||
|
||||
if !layer.quads.is_empty() {
|
||||
self.quad_pipeline.draw(
|
||||
device,
|
||||
encoder,
|
||||
&layer.quads,
|
||||
transformation,
|
||||
scale_factor,
|
||||
bounds,
|
||||
target,
|
||||
);
|
||||
}
|
||||
|
||||
if !layer.meshes.is_empty() {
|
||||
let scaled = transformation
|
||||
* Transformation::scale(scale_factor, scale_factor);
|
||||
|
|
@ -371,18 +383,6 @@ impl Renderer {
|
|||
);
|
||||
}
|
||||
|
||||
if !layer.quads.is_empty() {
|
||||
self.quad_pipeline.draw(
|
||||
device,
|
||||
encoder,
|
||||
&layer.quads,
|
||||
transformation,
|
||||
scale_factor,
|
||||
bounds,
|
||||
target,
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "image", feature = "svg"))]
|
||||
{
|
||||
if !layer.images.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue