I'm writing a 2D plateform game and im trying to draw an individual tile from a larger bmp, but a strip on the sides always blends with the tile next to it when the bmp is loaded (using nehe BMP to texture loader), I have turned blending off but it still happens. Is there any way around this? load the BMP: AUX_RGBImageRec *pBitMap = auxDIBImageLoad(strFileName); glGenTextures(1, &textureArray[ID]); glBindTexture(GL_TEXTURE_2D, textureArray[ID]); gluBuild2DMipmaps(GL_TEXTURE_2D, 3, pBitMap->sizeX, pBitMap->sizeY, GL_RGB, GL_UNSIGNED_BYTE, pBitMap->data); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); ----------------------------------------------- original BMP:

Loaded BMP:

This isn't bad except when the blue (sky) tiles are next to eachother:
[Edited by - RedDragon0509 on June 6, 2005 8:50:33 AM]