Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Asking for max texture width and height?

This topic is 6149 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

My OGL app gives totally white texture if I try to create texture with size of 512x512 pixels. I know that my device can use max. 256x256 textures (Voodoo3, D3DCAPS8 told it). How can I ask for max width & height of texture in OpenGL to resize my texture? [edit] And how to know if textures must be sized to power of two? Or can I suppose they must be? Edited by - stefu on July 20, 2001 4:23:07 AM

Share this post


Link to post
Share on other sites
Advertisement
You must use glGet with GL_MAX_TEXTURE_SIZE.

The textures must always be sized to power of two! (except if you use some NVIDIA extensions...)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!