It's possible to get the maximum texture size dynamically with "pyglet.gl.GL_MAX_TEXTURE_SIZE", so there's no reason to catch exceptions. I think just taking this and rounding it down to the next power of two would suffice for most cases.
That being said, some graphics cards support extremely large textures, so we could cap it at 4096 (~67 MB) unless explicitly overridden. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
