[DF-3011] set correct texture type
[DF-3012] Remove unneeded code