TETRIS: only change textures in the main thread

This commit is contained in:
2021-01-30 23:01:36 +01:00
parent ff091a66b9
commit 79557e9edc
5 changed files with 26 additions and 7 deletions
+3
View File
@@ -53,3 +53,6 @@ std::vector< std::shared_ptr< TetrisPiece > ( * )(
std::shared_ptr< SDLPP::Font > g_font{};
std::shared_ptr< SDLPP::FontConfiguration > g_font_config{};
std::vector<std::shared_ptr<SDLPP::Scene>> g_update_scenes{};
std::vector<std::shared_ptr<SDLPP::RenderObject>> g_update_objects{};