Skip to content

Commit

Permalink
fix(example): failed to compile when the target is Android
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Mar 27, 2021
1 parent e65a730 commit 92cad4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mediapipe/Samples/Scripts/SceneDirector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void OnEnable() {
// System.Environment.SetEnvironmentVariable("GLOG_v", "2");
}

#if (UNITY_STANDALONE_LINUX || UNITY_ANDROID) && !UNITY_EDITOR_OSX && !UNITY_EDITOR_WIN
#if UNITY_ANDROID && !UNITY_EDITOR_OSX && !UNITY_EDITOR_WIN
[AOT.MonoPInvokeCallback(typeof(PluginCallback))]
static void GetCurrentContext(int eventId) {
currentContext = Egl.getCurrentContext();
Expand All @@ -48,7 +48,7 @@ void Start() {

webCamScreen = GameObject.Find("WebCamScreen");

#if UNITY_ANDROID
#if UNITY_ANDROID && !UNITY_EDITOR_OSX && !UNITY_EDITOR_WIN
if (IsGpuEnabled()) {
PluginCallback callback = GetCurrentContext;

Expand Down

0 comments on commit 92cad4b

Please sign in to comment.