mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
Merge pull request #41 from WenhaiLin/master
Fixed fail to exit normally on android
This commit is contained in:
@@ -61,7 +61,6 @@ Application::Application()
|
||||
Application::~Application()
|
||||
{
|
||||
sm_pSharedApplication = nullptr;
|
||||
JniHelper::callStaticVoidMethod("org/cocos2dx/lib/Cocos2dxHelper", "terminateProcess");
|
||||
}
|
||||
|
||||
int Application::run()
|
||||
|
||||
@@ -110,7 +110,7 @@ bool GLViewImpl::isOpenGLReady()
|
||||
|
||||
void GLViewImpl::end()
|
||||
{
|
||||
|
||||
JniHelper::callStaticVoidMethod("org/cocos2dx/lib/Cocos2dxHelper", "terminateProcess");
|
||||
}
|
||||
|
||||
void GLViewImpl::swapBuffers()
|
||||
|
||||
Reference in New Issue
Block a user