More RenderDevice fixes

See the todo list in #969