fix(close #13): Fix glitchy behavior

This commit is contained in:
Huseyn Ismayilov 2024-08-24 20:50:58 +04:00
parent a87e392d71
commit d80ee75aea

View File

@ -71,14 +71,14 @@ void Renderer::SetupBuffers()
}
void Renderer::Render() {
s_Data.m_FBO->Bind();
glfwPollEvents();
glClearColor(0.0f, 0.1f, 0.2f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
UI::Run();
s_Data.m_FBO->Bind();
s_Data.m_Shader->Use();
auto transform = glm::mat4(1.0f);
transform = glm::translate(transform, glm::vec3(UI::GetData().m_Position[0], UI::GetData().m_Position[1], UI::GetData().m_Position[2]));