Set dim on renderwindow