Avoid setting texture filter over and over again.
Oops (forgot to remove a debug statement).
Add glViewport to cached gl state. Add a couple of missing VFPU ops.
Save on gl[Enable/Disable]VertexAttribArray calls.
Allow mipscalls to change the return value.

At least, seems like mpeg needs this.