fixed crash on rendering invalid chars
fixed some shader compile errors on windows