Call this.resetRenderState() only once if dimension changed