diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx index 86428447b995..d90400997469 100644 --- a/vcl/source/opengl/OpenGLHelper.cxx +++ b/vcl/source/opengl/OpenGLHelper.cxx @@ -1072,6 +1072,8 @@ void OpenGLHelper::debugMsgPrint(const int nType, const char *pFormat, ...) va_end (aArgs); } +#if HAVE_FEATURE_OPENGL || defined(ANDROID) + OutputDevice::PaintScope::PaintScope(OutputDevice *pDev) : pHandle( nullptr ) { @@ -1108,4 +1110,6 @@ OutputDevice::PaintScope::~PaintScope() flush(); } +#endif + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */