only set the clear color once

This commit is contained in:
Josh Holtrop 2016-09-13 22:21:30 -04:00
parent c852e9991b
commit 2289fe123e

View File

@ -150,6 +150,8 @@ bool Window::create(std::shared_ptr<Buffer> buffer)
m_scroll_offset = 5;
m_target_column = m_cursor->column;
glClearColor (0.0, 0.0, 0.0, 0.0);
resize();
return true;
@ -454,7 +456,6 @@ void Window::resize()
void Window::redraw()
{
glClearColor (0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
draw_text();