Android screen become black when change orientation

Problems building or running the engine, queries about how to use features etc.
Post Reply
alf
Gnoblar
Posts: 1
Joined: Mon Mar 18, 2019 4:50 pm

Android screen become black when change orientation

Post by alf » Mon Mar 18, 2019 5:01 pm

Ogre Version: :1.11.1
Operating System: :Windows 7
Render System: :GLES2

I have an android app and it works great when it start.
However, when I change the screen orientation everything goes black but no error shown.

I know I can use the following code which actually solve the problem

Code: Select all

android:configChanges="orientation"
to prevent Android from destroy and recreate the activity but let's assume I'm not allow to do this.
I have to destroy and recreate the activity.

Does ogre support this option?
Am I missing something>?

Any help will be appreciated.
Thanks.
0 x

Post Reply