From b2857a7ef01f43a9c02c035671f36162adebf0a9 Mon Sep 17 00:00:00 2001 From: kgv Date: Tue, 6 Jun 2017 17:59:57 +0300 Subject: [PATCH] 0028820: Samples - fix compilation of JAVA sample for Android --- samples/java/jniviewer/jni/OcctJni_Viewer.cxx | 4 ++-- samples/qt/AndroidQt/AndroidQt.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/java/jniviewer/jni/OcctJni_Viewer.cxx b/samples/java/jniviewer/jni/OcctJni_Viewer.cxx index 130203470a..23a02af5eb 100644 --- a/samples/java/jniviewer/jni/OcctJni_Viewer.cxx +++ b/samples/java/jniviewer/jni/OcctJni_Viewer.cxx @@ -195,8 +195,8 @@ bool OcctJni_Viewer::init() // create AIS context myContext = new AIS_InteractiveContext (myViewer); - //myContext->SetDisplayMode (AIS_WireFrame); - myContext->SetDisplayMode (AIS_Shaded); + //myContext->SetDisplayMode (AIS_WireFrame, false); + myContext->SetDisplayMode (AIS_Shaded, false); Handle(OcctJni_Window) aWindow = new OcctJni_Window (aWidth, aHeight); myView = myViewer->CreateView(); diff --git a/samples/qt/AndroidQt/AndroidQt.cxx b/samples/qt/AndroidQt/AndroidQt.cxx index 016fc71b9a..5b9aae375b 100644 --- a/samples/qt/AndroidQt/AndroidQt.cxx +++ b/samples/qt/AndroidQt/AndroidQt.cxx @@ -268,7 +268,7 @@ bool AndroidQt::initViewer() // create AIS context myContext = new AIS_InteractiveContext (myViewer); - myContext->SetDisplayMode (AIS_Shaded); + myContext->SetDisplayMode (AIS_Shaded, false); Handle(AndroidQt_Window) aWindow = new AndroidQt_Window (aWidth, aHeight); myView = myViewer->CreateView();