Can now actually change viewport size at runtime. Also fixed some GL stateful bs