Skip to content

Commit 4dd1887

Browse files
committed
Fix build error
1 parent 9bb1d18 commit 4dd1887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GUI/include/GUI/nanovg_lua.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct ImageAnimation
2121
float Timer;
2222
bool LoadComplete;
2323
Vector<Graphics::Image> Frames;
24-
Thread* Thread;
24+
Thread* JobThread;
2525
lua_State* State;
2626
};
2727

@@ -149,7 +149,7 @@ static int LoadAnimation(lua_State* L, const char* path, float frametime, int lo
149149
ia->SecondsPerFrame = frametime;
150150
ia->LoadComplete = false;
151151
ia->State = L;
152-
ia->Thread = new Thread(AnimationLoader, files, ia);
152+
ia->JobThread = new Thread(AnimationLoader, files, ia);
153153
g_guiState.animations[key] = ia;
154154

155155
return key;
@@ -885,8 +885,8 @@ static int DisposeGUI(lua_State* state)
885885
if (anim.second->State != state)
886886
continue;
887887

888-
if(anim.second->Thread && anim.second->Thread->joinable())
889-
anim.second->Thread->join();
888+
if(anim.second->JobThread && anim.second->JobThread->joinable())
889+
anim.second->JobThread->join();
890890
anim.second->Frames.clear();
891891
nvgDeleteImage(g_guiState.vg, anim.first);
892892
}

0 commit comments

Comments
 (0)