Пример #1
0
        internal void DisposeTex(ref ILinkedArrayTexture texture)
        {
            if (texture == null)
                return;

            MyLinkedArrayTexture castedTexture = (MyLinkedArrayTexture) texture;

            if (m_isDeviceInit)
                castedTexture.OnDeviceEnd();

            m_linkedArrays.Deallocate(castedTexture);
            texture = null;
        }