Jump to content
  • Advertisement
Sign in to follow this  
ChristophR

OpenGL glGetIntegerv

This topic is 4676 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I want to find out the maximum texture width which is supported by OpenGL on my system. It tried the following:
GLint texSize = 123;
glGetIntegerv(GL_ALPHA_TEST, &texSize);
std::cout << "Max texture width = " << texSize << std::endl;
The output is "Max texture width = 123", which means that glGetIntegerv has no effect. If I try to retrieve other flags the behaviour ist the same. Can anybody help me? Thanks in advance. rgds

Share this post


Link to post
Share on other sites
Advertisement
GL_ALPHA_TEST to ask for maximum texture size? Yeah, that makes sense...

It's not a valid enumerant anyway, so even if you do have a rendering context, the command is ignored and the value should be untouched. For the maximum texture size, pass GL_MAX_TEXTURE_SIZE.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!