diff --git a/src/effects/private/qgfxshaderbuilder.cpp b/src/effects/private/qgfxshaderbuilder.cpp index 6439ff3..231a9e3 100644 --- a/src/effects/private/qgfxshaderbuilder.cpp +++ b/src/effects/private/qgfxshaderbuilder.cpp @@ -40,7 +40,6 @@ #include "qgfxshaderbuilder_p.h" #include -#include #include #include @@ -72,7 +71,7 @@ QGfxShaderBuilder::QGfxShaderBuilder() return; } - QOffscreenSurface surface; + //QOffscreenSurface surface; // In very odd cases, we can get incompatible configs here unless we pass the // GL context's format on to the offscreen format. surface.setFormat(context.format()); diff --git a/src/effects/private/qgfxshaderbuilder_p.h b/src/effects/private/qgfxshaderbuilder_p.h index 4750f57..173321b 100644 --- a/src/effects/private/qgfxshaderbuilder_p.h +++ b/src/effects/private/qgfxshaderbuilder_p.h @@ -44,6 +44,7 @@ #include #include +#include QT_BEGIN_NAMESPACE @@ -59,6 +60,7 @@ class QGfxShaderBuilder : public QObject private: int m_maxBlurSamples = 0; bool m_coreProfile; + QOffscreenSurface surface; }; QT_END_NAMESPACE