diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 616fe35f8..00b96bb02 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -124,10 +124,6 @@ void Graphics::restoreState(const DisplayState &s) bool Graphics::setMode(int width, int height) { - DisplayState tempState; - if (isCreated()) - savedState = saveState(); - this->width = width; this->height = height;