If you did exactly as it was the original example then it's the normal
behaviour... because the viewer is reinitialized every time (it's stated in
the docs), if not... I'm not a seer that knows what have you done in the
code.

2012/10/24 Bernd Kampl <bernd.ka...@gmail.com>

> m working on an Android App based on the example AndroidExampleGLES1/2. In
> my case it's GLES1, but this problem persists in both GLES versions.
> The Problem occurs after the following steps (and it's easily
> reproducible):
> 1. run the android osgviewer app
> 2. load a model
> 3. put the android device to sleep (short press on power button)
> 4. wake up the android device
> 5. the model is gone.
>
> i know the error stems from losing the opengl context, which is then again
> created when the device is waking up again. so the obvious
> workaround/bugfix would be to preserve the opengl context. my problem is
> that i don't really know how to do this. i found a few more or less helpful
> comments on other web pages, but nothing to fix this particular problem yet.
> maybe someone can help me to fix this, i'd then be happy to somehow put
> this fix upstream (if that's possible) since that's a problem that persists
> in the example files.
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to