Possibly added support for all renderstates, needs thorough testing