summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-08-09 10:54:11 +0300
committerTor Lillqvist <tml@collabora.com>2016-08-10 16:36:48 +0300
commit8778a3e03945f5bafabb0274e3bd79aab6ee92f4 (patch)
treef63d78848bed44e35b768e85ab4535737c78dec5
parent237ff9c497b5ad166032f567aaa1fcde91c81ed1 (diff)
Surround PaintScope code with ifdefs matching declaration in include file
Change-Id: Iede85fc847b330b5586b95facafb690df7209d1b
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx4
1 files changed, 4 insertions, 0 deletions
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: */