minggo/cocos2d-x — comment on commit 05cb4a4ef0188ac0fa6525224c94d66aafefb162
File:  line 0
By moadib:

I think that
```cpp
static JavaVM *gJavaVM = 0;

jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
gJavaVM = vm;
return JNI_VERSION_1_4;
}

void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
{
if (gJavaVM)
{
JniHelper::setJavaVM(gJavaVM);
gJavaVM = 0;
}
```

can be changed to
```cpp
jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
JniHelper::setJavaVM(vm);
return JNI_VERSION_1_4;
}

void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
```