TETRIS: only change textures in the main thread
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user