mirror of
https://git.shylie.info/shylie/glerminal.git
synced 2025-02-07 03:10:12 +00:00
workaround to flush updating one call behind
This commit is contained in:
parent
db46885ee9
commit
11ffc40bbb
@ -287,6 +287,8 @@ namespace glerminal
|
||||
|
||||
glBlitNamedFramebuffer(m_screen_framebuffer, 0, 0, 0, GRID_WIDTH * CELL_SIZE, GRID_HEIGHT * CELL_SIZE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, GL_COLOR_BUFFER_BIT, GL_NEAREST);
|
||||
glfwSwapBuffers(m_window);
|
||||
glBlitNamedFramebuffer(m_screen_framebuffer, 0, 0, 0, GRID_WIDTH * CELL_SIZE, GRID_HEIGHT * CELL_SIZE, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, GL_COLOR_BUFFER_BIT, GL_NEAREST);
|
||||
glfwSwapBuffers(m_window);
|
||||
}
|
||||
|
||||
void glerminal::set(int x, int y, int layer, unsigned short sprite)
|
||||
|
Loading…
Reference in New Issue
Block a user