Fix the texture callback function null bug