Fixed bad world space to pixel size calculation and added debug and GL error tests to text.