www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: hika00 on August 13, 2012, 03:58:27 PM

Title: texture loaded but failed to upload..?
Post by: hika00 on August 13, 2012, 03:58:27 PM
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   
Title: Re: texture loaded but failed to upload..?
Post by: EgonOlsen on August 13, 2012, 04:08:30 PM
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.
Title: Re: texture loaded but failed to upload..?
Post by: hika00 on August 13, 2012, 04:11:30 PM
thanks very much!