View Full Version : GL_MAX_TEXTURE_SIZE
01-13-2004, 06:35 AM
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.
01-13-2004, 07:13 AM
max size of the texture (maximum height, width and depth if the texture is 3d). its is given in pixels of course
01-13-2004, 07:19 AM
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
 forgot the b for bothers!
[This message has been edited by V-man (edited 01-13-2004).]
01-14-2004, 01:15 AM
Not an advanced topic. Read the OpenGL specs 1.4 Table 6.27 Implementation Dependent Values plus Chapter 3.8.1 page 124.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.