diff --git a/engine/src/Renderer.cpp b/engine/src/Renderer.cpp index aa726d3..718f9a0 100644 --- a/engine/src/Renderer.cpp +++ b/engine/src/Renderer.cpp @@ -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]));