dukey
02-19-2011, 06:07 AM
I seem to recall a few years back when i had one of those ghetto 9600se cards that it claimed opengl 2.1 support, but then simply didn't support non power of two textures (one of the core features). It didn't even export the string. And using it resulted in a cataclysm.
Anyway fast forward somewhat and I am using a ghetto ati x1950 pro (latest drivers). It claims non power of two texture support, however if i use any non power of two textures above 512 in size they come out either black, or totally corrupted. If they come out corrupted, performance seems to be crippled.
For testing I am using a texture size
511x501 and it's RGB so not aligned on 4 byte boundary. I am using
glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
then
glTexImage2D (GL_TEXTURE_2D,0,GL_RGBA,imgWidth,imgHeight,0,form at,GL_UNSIGNED_BYTE,data);
This works fine.
http://i126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/th_nonfail.png (http://s126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/?action=view&current=nonfail.png)
But if i try a larger texture .. this happens
http://i126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/th_fail.png (http://s126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/?action=view&current=fail.png)
What am i doing wrong ?
Anyway fast forward somewhat and I am using a ghetto ati x1950 pro (latest drivers). It claims non power of two texture support, however if i use any non power of two textures above 512 in size they come out either black, or totally corrupted. If they come out corrupted, performance seems to be crippled.
For testing I am using a texture size
511x501 and it's RGB so not aligned on 4 byte boundary. I am using
glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
then
glTexImage2D (GL_TEXTURE_2D,0,GL_RGBA,imgWidth,imgHeight,0,form at,GL_UNSIGNED_BYTE,data);
This works fine.
http://i126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/th_nonfail.png (http://s126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/?action=view&current=nonfail.png)
But if i try a larger texture .. this happens
http://i126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/th_fail.png (http://s126.photobucket.com/albums/p95/dukeeeey/gfx%20stuff/?action=view&current=fail.png)
What am i doing wrong ?