public static void RemoveLight(MyLight light)
 {
     if (light != null)
     {
         light.Clear();
         m_preallocatedLights.Deallocate(light);
     }
 }
Exemple #2
0
 public static void RemoveLight(MyLight light)
 {
     if (light != null)
     {
         light.Clear();
         m_preallocatedLights.Deallocate(light);
     }
 }        
Exemple #3
0
        public static void RemoveLight(MyLight light)
        {
            if (light != null)
            {
                light.Clear();

                //by Gregory: added null check happened once when unloading session
                if (m_preallocatedLights != null)
                {
                    m_preallocatedLights.Deallocate(light);
                }
            }
        }
Exemple #4
0
        public static void RemoveLight(MyLight light)
        {
            if (light != null)
            {
                light.Clear();

                //by Gregory: added null check happened once when unloading session
                if (m_preallocatedLights != null)
                {
                    m_preallocatedLights.Deallocate(light);
                }
            }
        }