diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index d22eee97b..45e61a8ac 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -210,6 +210,8 @@ bool Graphics::setMode(int width, int height, int pixelwidth, int pixelheight, b this->width = width; this->height = height; + this->windowHasStencil = windowhasstencil; + // Okay, setup OpenGL. gl.initContext(); gl.setupContext();