mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
leave minimap textures in memory
This commit is contained in:
parent
41b801b7a7
commit
ab07ff11a6
1 changed files with 2 additions and 1 deletions
|
@ -156,6 +156,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
|
||||
Debug.Log("Merging all map sprites into one sprite.");
|
||||
TextureLoadParams textureLoadParams = new TextureLoadParams(){makeNoLongerReadable = false};
|
||||
for (int i = 0; i < tileCount; i++)
|
||||
{
|
||||
// Offset
|
||||
|
@ -165,7 +166,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
string name = "radar" + ((i < 10) ? "0" : "") + i;
|
||||
var texDict = TextureDictionary.Load(name);
|
||||
|
||||
Texture2D tex = texDict.GetDiffuse(name).Texture;
|
||||
Texture2D tex = texDict.GetDiffuse(name, textureLoadParams).Texture;
|
||||
|
||||
if (outputChunks)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue