Fix a compiler warning in the previous commit.
Fix indentation in generated code
Add a test for a bug when called during glBegin()/glEnd().
Fix calling new entrypoints from within glBegin()/glEnd().