cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
2015-01-22 10:02
543 查看
can not invoke OpenGL es functions in new thread.
要在opengl es 的线程里面调用
例如原来你的游戏代码是:
现在你需要这么操作,让调用再open gl 处理,代码如下:
要在opengl es 的线程里面调用
例如原来你的游戏代码是:
native public void buySuccess(int realIndex);
现在你需要这么操作,让调用再open gl 处理,代码如下:
public void buySuccessJava(final int realIndex) { Cocos2dxGLSurfaceView.getInstance().queueEvent(new Runnable() { @Override public void run() { buySuccess(realIndex); } }); }
相关文章推荐
- cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
- cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
- cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
- cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
- cocos2dx- call to OpenGL ES API with no current context(logged once per thread)
- OpenGL ES开发中遇到call to OpenGL ES API with no current context (logged once per thread) 问题原因
- Android: call to OpenGL ES API with no current context (logged once per thread)
- call to OpenGL ES API with no current context (logged once per thread)可能会导致加载问题?
- call to OpenGL ES API with no current context (logged once per thread)
- call to OpenGL ES API with no current context (logged once per thread)
- 【cocos2d-x 025】 call to OpenGL ES API with no current context (logged once per thread)
- 解决COCOS2D-X与JNI交互游戏出现崩溃的问题call to OpenGL ES API with no current context (logged once per thread)
- call to OpenGL ES API with no current context (logged once per thread)
- call to OpenGL ES API with no current context (logged once per thread)
- JNI error:libEGL: call to OpenGL ES API with no current context (logged once per
- 关于LGame中的call to OpenGL ES API with no current context
- call to OpenGL ES API with no current context 错误及解决方案
- call to OpenGL ES API with no current context 和Fatal signal 11
- cocos2d-x于android在call to OpenGL ES API with no current context
- call to OpenGL ES API with no current context 和Fatal signal 11