fleshed out some renderer state manipulation