texture conversion working