Updated to create loader after sfml window context.