Allow only uniform scaling in Transformation
This commit is contained in:
parent
aa41d7656e
commit
a6e91d13d5
4 changed files with 16 additions and 21 deletions
|
|
@ -147,8 +147,8 @@ impl Backend {
|
|||
}
|
||||
|
||||
if !layer.meshes.is_empty() {
|
||||
let scaled = transformation
|
||||
* Transformation::scale(scale_factor, scale_factor);
|
||||
let scaled =
|
||||
transformation * Transformation::scale(scale_factor);
|
||||
|
||||
self.triangle_pipeline.prepare(
|
||||
device,
|
||||
|
|
@ -161,8 +161,8 @@ impl Backend {
|
|||
#[cfg(any(feature = "image", feature = "svg"))]
|
||||
{
|
||||
if !layer.images.is_empty() {
|
||||
let scaled = transformation
|
||||
* Transformation::scale(scale_factor, scale_factor);
|
||||
let scaled =
|
||||
transformation * Transformation::scale(scale_factor);
|
||||
|
||||
self.image_pipeline.prepare(
|
||||
device,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue