Original Post
im trying to add another texture into my scene everything ok apart from the start when i go to compile i get error C2374: 'texName' : redefinition; multiple initialization, but when i change it to texName 2 it crashes on me, below is a sample of the code im having an issue with
#define FLOOR 0
#define DOOR 1
struct Image
{
unsigned long size_x;
unsigned long size_y;
char *data;
};
typedef struct Image Image;
const int texNum = 2;
Image texData[texNum];
GLuint theTexture[texNum];
char* texName[texNum] = {"floor.bmp"};
char* texName[texNum] = {"door.bmp"};