Skip to content

DynamicAtlas 里一个问题 #1

@IcePower

Description

@IcePower

DynamicAtlas.cs 里 OnRenderTexture 函数里的
DynamicAtlasMgr.S.ReleaseGetTextureData(task); m_GetTextureTaskList.RemoveAt(i);
这两行代码是否应该放在 if (task.name.Equals(name)) 判断里面

if (task.name.Equals(name))
{
    if (task.callback != null)
    {
        task.callback(null, new Rect(0, 0, 0, 0));
    }

   // 是否应该放在这里
    DynamicAtlasMgr.S.ReleaseGetTextureData(task);
    m_GetTextureTaskList.RemoveAt(i);
}

// 原本在这里
//DynamicAtlasMgr.S.ReleaseGetTextureData(task);
//m_GetTextureTaskList.RemoveAt(i);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions