mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
R_PrintTextureDuplicates: always join thread
If the program exits without joining this thread, that's a crash.
This commit is contained in:
parent
1c63f98d61
commit
9d0e01b073
1 changed files with 5 additions and 2 deletions
|
|
@ -141,13 +141,16 @@ void R_CheckTextureDuplicates(INT32 start, INT32 end)
|
||||||
|
|
||||||
void R_PrintTextureDuplicates(void)
|
void R_PrintTextureDuplicates(void)
|
||||||
{
|
{
|
||||||
|
if (g_dups_thread.joinable())
|
||||||
|
{
|
||||||
|
g_dups_thread.join();
|
||||||
|
}
|
||||||
|
|
||||||
if (g_dups.empty())
|
if (g_dups.empty())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_dups_thread.join();
|
|
||||||
|
|
||||||
for (auto [key, v] : g_dups)
|
for (auto [key, v] : g_dups)
|
||||||
{
|
{
|
||||||
std::for_each(v.cbegin(), v.cend(), print_dup);
|
std::for_each(v.cbegin(), v.cend(), print_dup);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue