File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -298,8 +298,10 @@ void TextureLoader::Request_Thumbnail(TextureBaseClass *texture)
298
298
// Possibly this code isn't ever actually used with Thumbnail code in general being minimally
299
299
// called.
300
300
if (texture->Get_Thumbnail_Load_Task () != nullptr ) {
301
- FastCriticalSectionClass::LockClass lock (g_foregroundCritSec);
302
- g_foregroundQueue.Remove (texture->Get_Thumbnail_Load_Task ());
301
+ {
302
+ FastCriticalSectionClass::LockClass lock (g_foregroundCritSec);
303
+ g_foregroundQueue.Remove (texture->Get_Thumbnail_Load_Task ());
304
+ }
303
305
texture->Get_Thumbnail_Load_Task ()->Destroy ();
304
306
}
305
307
} else {
@@ -496,7 +498,8 @@ void TextureLoader::Process_Foreground_Thumbnail(TextureLoadTaskClass *task)
496
498
switch (task->Get_Load_State ()) {
497
499
case TextureLoadTaskClass::STATE_NONE:
498
500
Load_Thumbnail (task->Get_Texture ());
499
- case TextureLoadTaskClass::STATE_FOREGROUND_OVERRIDE: // Fallthrough
501
+ [[fallthrough]];
502
+ case TextureLoadTaskClass::STATE_FOREGROUND_OVERRIDE:
500
503
task->Destroy ();
501
504
break ;
502
505
default :
You can’t perform that action at this time.
0 commit comments