Add default framebuffer clearing to render.cpp
This commit is contained in:
parent
089ab7539c
commit
eb334a2a90
@ -39,6 +39,7 @@ render_manager::renderer_error render_manager::init (int width, int height, cons
|
||||
}
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
glClearColor(0, 0, 0, 1);
|
||||
|
||||
debug_print("[DD] OpenGL %s, GLSL %s\n", glGetString(GL_VERSION), glGetString(GL_SHADING_LANGUAGE_VERSION));
|
||||
|
||||
@ -49,6 +50,7 @@ render_manager::renderer_error render_manager::init (int width, int height, cons
|
||||
|
||||
void render_manager::update(){
|
||||
glfwSwapBuffers(m_main_window);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
glfwPollEvents();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user