GLView problem when go to home screen and try to resume

36 views
Skip to first unread message

Diego Guterres

unread,
Apr 1, 2016, 7:51:49 AM4/1/16
to DroidScript
Hello there. In OnStart I load a .png with glview.CreateImage, then I go to home screen and try to resume the app. It breaks, then. The same thing happens in the samples of GLView. Am I doing something wrong? Thx.

nikhil baby

unread,
Apr 1, 2016, 12:49:14 PM4/1/16
to DroidScript
Same with me also

Diego Guterres

unread,
Apr 1, 2016, 4:38:46 PM4/1/16
to DroidScript
It happens with .png but not .jpg
Also we can use glview.Release(), I am not sure of what release does, but app doesnt crash.

Steve Garman

unread,
Apr 1, 2016, 4:54:08 PM4/1/16
to DroidScript
glview.Release() does the same thing as glview.Destroy()

If you are using that in the OnPause event, you may need to recreate the glview in the OnResume event, using
glview = app.CreateGLView

Diego Guterres

unread,
Apr 1, 2016, 4:57:24 PM4/1/16
to DroidScript
Is there a way to use .png without the needing of recreate glview?
Reply all
Reply to author
Forward
0 new messages