Fix for Android build issue (#2225)

* Fix Android build issue

* Add copyright notice

* Add required empty line
This commit is contained in:
RH 2024-11-01 03:59:17 +11:00 committed by GitHub
parent 1e633a015d
commit f03efb8cf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 8 deletions

View File

@ -1,6 +1,7 @@
/****************************************************************************
Copyright (c) 2015-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).
https://axmol.dev/
@ -53,8 +54,8 @@ public class AppActivity extends AxmolActivity{
}
@Override
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
public AxmolGLSurfaceView onCreateView() {
AxmolGLSurfaceView glSurfaceView = new AxmolGLSurfaceView(this);
// Tests should create stencil buffer
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);

View File

@ -1,6 +1,7 @@
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).
https://axmol.dev/
@ -33,7 +34,7 @@ public class LuaJavaBridgeTest
}
public static void callbackLua(final String tipInfo,final int luaFunc){
Cocos2dxLuaJavaBridge.callLuaFunctionWithString(luaFunc, "success");
Cocos2dxLuaJavaBridge.releaseLuaFunction(luaFunc);
LuaBridge.callLuaFunctionWithString(luaFunc, "success");
LuaBridge.releaseLuaFunction(luaFunc);
}
}