mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Preventing display glitch from invalid scaling of view
This commit is contained in:
@@ -144,6 +144,11 @@ void GeometryView::update(float dt)
|
||||
}
|
||||
output_surface_->setTextureIndex( output->texture() );
|
||||
}
|
||||
|
||||
// prevent invalid scaling
|
||||
float s = CLAMP(scene.root()->scale_.x, GEOMETRY_MIN_SCALE, GEOMETRY_MAX_SCALE);
|
||||
scene.root()->scale_.x = s;
|
||||
scene.root()->scale_.y = s;
|
||||
}
|
||||
|
||||
// the current view is the geometry view
|
||||
|
||||
Reference in New Issue
Block a user