Corrected texture loading flag implementation.