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
+1 -1
View File
@@ -98,7 +98,7 @@ check_floor:
g_cur_object->movePiece( 0, -BLOCK_SIZE );
for ( auto &block : g_cur_object->getObjects() ) {
if ( scene->getCollisions( *block, { GAME_OVER } ).size() > 0 ) {
g_game_over_scene->updateSizeAndPosition();
g_update_scenes.push_back(g_game_over_scene);
g_active_scenes.push_back( g_game_over_scene );
g_input_functions.push_back( gameOverSceneInput );
break;