- bullet native: add fix for android compilation of native

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8402 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-10-15 21:21:02 +00:00
parent b5af58df86
commit 3dfe94f84b

View File

@ -49,7 +49,11 @@ jmePhysicsSpace::jmePhysicsSpace(JNIEnv* env, jobject javaSpace) {
}
void jmePhysicsSpace::attachThread() {
vm->AttachCurrentThread((void **) &env, NULL);
#ifdef JNI_VERSION_1_2
vm->AttachCurrentThread((void**) &env, NULL);
#else
vm->AttachCurrentThread(vm, &env, NULL);
#endif
}
JNIEnv* jmePhysicsSpace::getEnv() {