mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
feat: add ui renderer
This commit is contained in:
@@ -27,7 +27,7 @@ void Window::update_viewport() {
|
||||
glfwGetFramebufferSize(m_window, &m_width, &m_height);
|
||||
m_aspect = (float)m_width / (float)m_height;
|
||||
glViewport(0, 0, m_width, m_height);
|
||||
m_renderer.update_proj_matrix(m_aspect);
|
||||
m_renderer.update_proj_matrix(m_aspect, m_width, m_height) ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user