Results 1 to 3 of 3

Thread: detecting/anticipating texture creation failure

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Posts
    1

    detecting/anticipating texture creation failure

    With OpenGL-ES 1.1, I can't find any documentation that describes how to detect whether the creation of a new texture will fail (or has failed) because of texture memory limits.

    Can someone enlighten me on how this can be done?

    The second question is how can I obtain the texture memory limits?

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: detecting/anticipating texture creation failure

    Quote Originally Posted by angusdavis
    With OpenGL-ES 1.1, I can't find any documentation that describes how to detect whether the creation of a new texture will fail (or has failed) because of texture memory limits.

    Can someone enlighten me on how this can be done?
    If the GL implementation runs out of memory for any reason it will generate a GL_OUT_OF_MEMORY error. So you have to call glGetError after glTexImage2D.

    The second question is how can I obtain the texture memory limits?
    There is no way to do this.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

  3. #3
    Junior Member
    Join Date
    Oct 2007
    Location
    Rome
    Posts
    2
    Hi all! One question on-the-fly.
    Loading 10 textures 256x256 each is too much for a mobile phone?? Each texture weights about 10KB.

    I'm asking this because I'm having problems with my application on Nokia 2nd edition devices. I've noticed that application stops loading after 4 textures, that is the 5th is the one creating the problem.
    This is almost surely a memory issue, so I was wondering if what count on texture memory limits are the dimension (256x256 is huge image matrix) or the effective weight in bytes.

    Thx in advance for your help!
    Regards,
    Adriano

Similar Threads

  1. Well defined ways of detecting product ID
    By codedivine in forum Suggestions for next release
    Replies: 1
    Last Post: 10-13-2012, 10:11 PM
  2. Replies: 4
    Last Post: 07-30-2011, 07:50 AM
  3. Help detecting when a 3d element is touched on iPhone
    By SilicaGel in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 2
    Last Post: 09-14-2010, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •