- revamped viewport handling, fixes lots of bugs (and now using gl_state)
- no mesh #define removed