TETRIS: only change textures in the main thread
This commit is contained in:
@@ -147,6 +147,15 @@ int main() {
|
||||
updateSize();
|
||||
g_update_size = false;
|
||||
}
|
||||
for(size_t i = 0; i < g_update_scenes.size(); i++) {
|
||||
g_update_scenes.back()->updateSizeAndPosition();
|
||||
g_update_scenes.pop_back();
|
||||
}
|
||||
for(size_t i = 0; i < g_update_objects.size(); i++) {
|
||||
g_update_objects.back()->updateSizeAndPosition();
|
||||
g_update_objects.pop_back();
|
||||
}
|
||||
|
||||
|
||||
renderer->clearRenderer();
|
||||
for ( auto &x : g_active_scenes ) {
|
||||
|
||||
Reference in New Issue
Block a user