Fixed lod code but still has memory leaks

-Add back row material switch (from texture material to lod materia)
-Refactoring