converted texture to sharedptr