when i call the function glgetintegerv to get the max. tex size, i get 2048. is this size the max. size of the texture in the rgba format, luminance or…? is there anyway i can convert this value to the max allowable RBG8 texture size? or how can i get a definative value on which i can rely and develop the error (displaying white rectangles) trapping code.

Never thought about that, but i am quite sure, that it is the maximum size for a texture, no matter what format it uses.

So you cannot create bigger texture, by making it a luminance texture.


max size of the texture (maximum height, width and depth if the texture is 3d). its is given in pixels of course

  1. You should use proxy textures to see if upload a texture will succeed. But I don’t think anyone bothers with this.

  2. GL_MAX_TEXTURE_SIZE gives the max for 1D and 2D textures

[edit] forgot the b for bothers!

[This message has been edited by V-man (edited 01-13-2004).]

Not an advanced topic. Read the OpenGL specs 1.4 Table 6.27 Implementation Dependent Values plus Chapter 3.8.1 page 124.