Reorganized init function calling to permit texture initialization in user-initialization function.