Fixed imguizmo aspect ratio

This commit is contained in:
antopilo
2025-02-06 12:40:21 -05:00
parent ee36f98cdd
commit ea503a1c85
4 changed files with 17 additions and 26 deletions

View File

@@ -195,13 +195,6 @@ void Window::Draw()
{
return;
}
// We cannot render to a framebuffer that is smaller than 1x1.
Vector2 size = this->framebuffer->GetSize();
size.x = std::max(size.x, 1.0f);
size.y = std::max(size.y, 1.0f);
cam->AspectRatio = size.x / size.y;
}
void Window::EndDraw()