mirror of https://github.com/axmolengine/axmol.git
Fix for Android build issue (#2225)
* Fix Android build issue * Add copyright notice * Add required empty line
This commit is contained in:
parent
1e633a015d
commit
f03efb8cf7
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue