Fixed texture loading on Windows. (Apparently this assert actually works on Linux tough)