only set the clear color once
This commit is contained in:
parent
c852e9991b
commit
2289fe123e
@ -150,6 +150,8 @@ bool Window::create(std::shared_ptr<Buffer> buffer)
|
|||||||
m_scroll_offset = 5;
|
m_scroll_offset = 5;
|
||||||
m_target_column = m_cursor->column;
|
m_target_column = m_cursor->column;
|
||||||
|
|
||||||
|
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||||
|
|
||||||
resize();
|
resize();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -454,7 +456,6 @@ void Window::resize()
|
|||||||
|
|
||||||
void Window::redraw()
|
void Window::redraw()
|
||||||
{
|
{
|
||||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
draw_text();
|
draw_text();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user