fix custom texture loading in dx9 backend