mirror of
				https://git.shylie.info/shylie/glerminal.git
				synced 2025-10-31 09:10:13 +00:00 
			
		
		
		
	workaround to flush updating one call behind
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user