Fixed bug in text overlay shader. Fixes #1479.