Has anyone had a strange line thats color varies with the image go from the top right corner of your texture to the bottom left corner and half way up the left and bottom sides from the left corner, but it will go away if you reboot your computer? It doesn''t seem to matter if the image is generated with glTexImage2D() or gluBuild2DMipmaps().
Thanks for you input!
Are you using an ATI video card? It sounds like a driver problem to me. Update your drivers, if you have an ATI card you may have to live with it, some do stuff like that, you could try to get them to replace it.
Jason Mickela ICQ : 873518 E-Mail: firstname.lastname@example.org ------------------------------ "Evil attacks from all sides but the greatest evil attacks from within." Me ------------------------------
Also, if I have several memory intensive programs running (i.e. MS Word, IE, Gimp, etc.) at the same time, the line appears. If I exit all the programs and make sure all the memory was restored (by using the Resource Meter) the line still shows up. If I reboot my computer the texture is displayed properly. So that leads me to believe it has something to do with memory, perhaps virtual memory.
System Specs: 256 MB of SDRAM 733 MHZ Pentium III 45.0 GB hard drive 17" HP M70 monitor 16 MB TNT2 Vanta AGP (I know my video card drivers are up to date since I updated them about a week ago)
I would try using glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); put those right before you use the glBuildTexture type thing or the gluBuild2DMipmaps might help
Also is there a better way to check if a image''s length and width are the same and a power of 2? Or, is it more efficient just to call gluBuild2DMipmaps? It is an image loading class where I want it to be rather general (but only use RGB or RGB RLE for the TGA data type); that''s why I use that power of 2 if statement.