[SOLVED] Irrlicht Android - runtime error

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
AlfAlien
Posts: 20
Joined: Tue Jan 28, 2014 2:08 pm

[SOLVED] Irrlicht Android - runtime error

Post by AlfAlien »

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.
Last edited by AlfAlien on Tue Jan 28, 2014 4:59 pm, edited 1 time in total.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Irrlicht Android - runtime error

Post by Nadro »

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
AlfAlien
Posts: 20
Joined: Tue Jan 28, 2014 2:08 pm

Re: Irrlicht Android - runtime error

Post by AlfAlien »

I found out that using

Code: Select all

 
        setEGLContextClientVersion(2); //
 
we can enforce to use GLES2.
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();
    }
 
Post Reply