more work on the opengl matrix stack replacement
small optimization