summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuinsert.cxx3
-rw-r--r--sd/source/ui/view/sdview4.cxx3
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index c26054da4f0b..01a795a967e2 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -816,8 +816,9 @@ void FuInsert3DModel::DoExecute( SfxRequest& )
aPos.X() -= aSize.Width() >> 1;
aPos.Y() -= aSize.Height() >> 1;
}
-
+#if HAVE_FEATURE_OPENGL
mpView->Insert3DModelURL( sURL, nAction, aPos, aSize ) ;
+#endif
if( mpWindow )
mpWindow->LeaveWait();
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index d68de3a92830..b76b8717892a 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -292,7 +292,7 @@ void View::InsertMediaURL( const OUString& rMediaURL, sal_Int8& rAction,
InsertMediaObj( realURL, "application/vnd.sun.star.media", rAction, rPos, rSize );
}
-
+#if HAVE_FEATURE_OPENGL
#if HAVE_FEATURE_GLTF
void View::Insert3DModelURL(
const OUString& rModelURL, sal_Int8& rAction,
@@ -311,6 +311,7 @@ void View::Insert3DModelURL(
pRetObject->setMediaProperties(aItem);
}
#endif
+#endif
SdrMediaObj* View::InsertMediaObj( const OUString& rMediaURL, const OUString& rMimeType, sal_Int8& rAction,
const Point& rPos, const Size& rSize )