Bugfix: Added barrier to await completion of texture loading.