C client: Fix map being invisible when missing default.zip

This commit is contained in:
UnknownShadow200 2018-10-01 22:44:49 +10:00
parent 0b9fa28779
commit ab8f1f3d67

View File

@ -479,6 +479,8 @@ void ChunkUpdater_Init(void) {
Event_RegisterVoid(&GfxEvents_ContextLost, NULL, ChunkUpdater_ClearChunkCache_Handler); Event_RegisterVoid(&GfxEvents_ContextLost, NULL, ChunkUpdater_ClearChunkCache_Handler);
Event_RegisterVoid(&GfxEvents_ContextRecreated, NULL, ChunkUpdater_Refresh_Handler); Event_RegisterVoid(&GfxEvents_ContextRecreated, NULL, ChunkUpdater_Refresh_Handler);
/* This = 87 fixes map being invisible when no textures */
MapRenderer_1DUsedCount = 87; /* Atlas1D_UsedAtlasesCount(); */
ChunkUpdater_ChunkPos = Vector3I_MaxValue(); ChunkUpdater_ChunkPos = Vector3I_MaxValue();
ChunkUpdater_ApplyMeshBuilder(); ChunkUpdater_ApplyMeshBuilder();
} }