Fix some bugs with the RenderDevice refactor

This fixes the crash I was getting in GameStateNew.