Author Topic: texture loaded but failed to upload..?  (Read 2094 times)

Offline hika00

  • byte
  • *
  • Posts: 7
    • View Profile
texture loaded but failed to upload..?
« 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   

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: texture loaded but failed to upload..?
« Reply #1 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:

Code: [Select]
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.

Offline hika00

  • byte
  • *
  • Posts: 7
    • View Profile
Re: texture loaded but failed to upload..?
« Reply #2 on: August 13, 2012, 04:11:30 pm »
thanks very much!