texture loaded but failed to upload..?

Started by hika00, August 13, 2012, 03:58:27 PM

Previous topic - Next topic

hika00

LogCat
08-13 22:53:07.103: I/jPCT-AE(23333): Loading Texture...
08-13 22:53:07.193: I/jPCT-AE(23333): Texture loaded...4194304 bytes/1024*1024 pixels!
08-13 22:53:07.233: I/jPCT-AE(23333): [ 1344865987242 ] - ERROR: Failed to upload texture!

Debug
   GLRenderer.upload(Texture) line: 1592   
   TextureManager.preWarm(FrameBuffer) line: 297   

EgonOlsen

This still means that OpenGL doesn't return a texture id for this upload. I guess you are still using your custom SurfaceView? In that case, just scrap it. It doesn't seem to be working correctly. Because it's this line that fails:


gl10.glGenTextures(1, buf);


...and that actually can't happen unless the gl context (gl10 in this case) is invalid. It's up to your implementation to provide a valid context, the engine can do nothing about this.