Modified gitignore to remove all build directories. Minor changes to GLSL generation code. Minor fix to setting a RenderState as current.