fix(close #13): Fix glitchy behavior
This commit is contained in:
parent
a87e392d71
commit
d80ee75aea
@ -71,14 +71,14 @@ void Renderer::SetupBuffers()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Renderer::Render() {
|
void Renderer::Render() {
|
||||||
|
s_Data.m_FBO->Bind();
|
||||||
|
|
||||||
glfwPollEvents();
|
glfwPollEvents();
|
||||||
glClearColor(0.0f, 0.1f, 0.2f, 1.0f);
|
glClearColor(0.0f, 0.1f, 0.2f, 1.0f);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
UI::Run();
|
UI::Run();
|
||||||
|
|
||||||
s_Data.m_FBO->Bind();
|
|
||||||
|
|
||||||
s_Data.m_Shader->Use();
|
s_Data.m_Shader->Use();
|
||||||
auto transform = glm::mat4(1.0f);
|
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]));
|
transform = glm::translate(transform, glm::vec3(UI::GetData().m_Position[0], UI::GetData().m_Position[1], UI::GetData().m_Position[2]));
|
||||||
|
Loading…
Reference in New Issue
Block a user