Fix bug: renderer2d set viewport while there is no viewport in the stack.