Jump to content
  • Advertisement
Sign in to follow this  
maxphil

NPOT with GL_TEXTURE_RECTANGLE_ARB

This topic is 4161 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'm trying to load a "npot" bitmap into a GL_TEXTURE_RECTANGLE_ARB texture, but clearly i'm missing something becouse the drawing gets all wierd in the screen(it works fine with "pot" images). Can somebody help me? *MSV 2003 project http://www.inf.ufsc.br/~vilsonhj/tex_arb.rar With images like 360x240 and 1024x768 the program displays it FINE. However, with an image of 407x369 Shocked check it out: http://www.geocities.com/karl_phillip/npot.JPG

Share this post


Link to post
Share on other sites
Advertisement
*Problem solved*

I didn't know I had to "disable alignment of rows of source data" using glPixelStorei( GL_UNPACK_ALIGNMENT, 1 ) ;

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.

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

Sign me up!