I compiled Irrlicht android with GLES2 only, also disabled importgl. At runtime I have the following output in LogCat (running on Huawei Media Pad 10, Android 4.1.2):
01-28 20:47:27.728: I/Irrlicht(9228): OGLES2 initialized
01-28 20:47:27.728: I/log(9228): Using renderer: OpenGL ES-CM 1.1
How this can be? I was linking with -lGLESv2.
[SOLVED] Irrlicht Android - runtime error
[SOLVED] Irrlicht Android - runtime error
Last edited by AlfAlien on Tue Jan 28, 2014 4:59 pm, edited 1 time in total.
Re: Irrlicht Android - runtime error
Please check Irrlicht Android example (both EDT_OGLES1 and EDT_OGLES2 drivers). Are you sure that you use the latest ogl-es revision?
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Re: Irrlicht Android - runtime error
I found out that using
we can enforce to use GLES2.
P.S. Thank you very much for your reply!
//============================
Code: Select all
setEGLContextClientVersion(2); //
P.S. Thank you very much for your reply!
//============================
Code: Select all
public IrrlichtGLView(IrrlichtTest activity)
{
super(activity);
mActivity = activity;
mRenderer = new IrrlichtRenderer(activity);
setEGLContextClientVersion(2);
setRenderer(mRenderer);
lastEvent = new IrrlichtEvent();
}