Fixed bug related to default/forced rendererstate materials; the correct material should be used now