mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-19 04:26:52 -04:00
Fix crash on context lost (am silly)
This commit is contained in:
parent
41f68cc323
commit
b11d5185e8
@ -547,6 +547,7 @@ static void ServerConnection_Init(void) {
|
||||
MPConnection_Init();
|
||||
}
|
||||
|
||||
Gfx_LostContextFunction = ServerConnection_Tick;
|
||||
ScheduledTask_Add(GAME_NET_TICKS, ServerConnection_Tick);
|
||||
String_AppendConst(&ServerConnection_AppName, PROGRAM_APP_NAME);
|
||||
}
|
||||
@ -560,7 +561,6 @@ static void ServerConnection_Free(void) {
|
||||
Socket_Close(net_socket);
|
||||
ServerConnection_Disconnected = true;
|
||||
}
|
||||
Gfx_LostContextFunction = ServerConnection_Tick;
|
||||
}
|
||||
|
||||
struct IGameComponent ServerConnection_Component = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user