Add the definition of the resizeGL() method.