Do not change the old Material's precache status in Surface.setMaterial() when changing Surface.material. This needs reference counting to do correctly.
View differences
Do not change the old Material's precache status in Surface.setMaterial() when changing Surface.material. This needs reference counting to do correctly.