only set the clear color once
This commit is contained in:
1 parent
c852e9991b
commit
2289fe123e
1 file changed
+2
-1
+2
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user