slimsallem7 / droidar

Automatically exported from code.google.com/p/droidar
0 stars 0 forks source link

Textures are disappearing after onResume #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When loading a Texture in _b_addWorldsToRenderer 

localBitmap = BitmapFactory.decodeResource(myTargetActivity.getResources(), 
R.drawable.info8);

and using it with 

MeshComponent newTexturedSquare(String bitmapName, Bitmap bitmap,float size)

The Textures are displayed the first time it loads but after putting a new 
Activity on the Stack and returning to the Activity there is only a white 
square.

The Issue might be related to 
http://stackoverflow.com/questions/5213145/reload-opengl-textures-after-onresume
-in-glsurfaceview/5247390#5247390 except for the Solution.

Original issue reported on code.google.com by Jygga...@gmail.com on 10 Jul 2011 at 11:02

GoogleCodeExporter commented 9 years ago
We are using the Setup with GoogleMaps support.

Original comment by Jygga...@gmail.com on 10 Jul 2011 at 11:04

GoogleCodeExporter commented 9 years ago
Might also be related to this bug: 
http://groups.google.com/group/android-developers/browse_thread/thread/7d9a3ccb7
ec955e9

Original comment by Jygga...@gmail.com on 11 Jul 2011 at 12:27

GoogleCodeExporter commented 9 years ago
or its just low memory... can be closed i guess?

Original comment by Jygga...@gmail.com on 13 Jul 2011 at 6:37

GoogleCodeExporter commented 9 years ago
We should let it open for now because there might be a solution to reload the 
textures when they were freed.

Original comment by simon.heinen on 13 Jul 2011 at 8:53