Skip to content

Commit

Permalink
Fix jni::String construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd committed Aug 28, 2024
1 parent c1f140b commit 9c9a338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions platform/android/MapLibreAndroid/src/cpp/native_map_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ void NativeMapView::onPreCompileShader(shaders::BuiltIn id,
onPreCompileShader,
static_cast<jni::jint>(id),
static_cast<jni::jint>(type),
jni::Make<jni::String>(additionalDefines));
jni::Make<jni::String>(*_env, additionalDefines));
}
}

Expand All @@ -1379,7 +1379,7 @@ void NativeMapView::onPostCompileShader(shaders::BuiltIn id,
onPostCompileShader,
static_cast<jni::jint>(id),
static_cast<jni::jint>(type),
jni::Make<jni::String>(additionalDefines));
jni::Make<jni::String>(*_env, additionalDefines));
}
}

Expand All @@ -1398,7 +1398,7 @@ void NativeMapView::onShaderCompileFailed(shaders::BuiltIn id,
onShaderCompileFailed,
static_cast<jni::jint>(id),
static_cast<jni::jint>(type),
jni::Make<jni::String>(additionalDefines));
jni::Make<jni::String>(*_env, additionalDefines));
}
}

Expand Down

0 comments on commit 9c9a338

Please sign in to comment.