View Full Version : invalid conversion from int* to GLuint*

05-03-2010, 03:12 PM
Hello !

I am working on a new project. I haven't used Open GL for a long time so I don't really know. I have this error with the following code :

void loadTexture(MATERIAL *material, char *path)
char *URL = NULL;
char *name = material->texture.name;

URL = strdup(path);
URL = (char *)realloc(URL, sizeof(char) * (strlen(path)+strlen(name))+1 );

strcat(URL, name);

if(loadJpegImage(URL, &material->texture))
{ int size = material->texture.resolution;

glGenTextures(1, &material->texture.idBind);

..on the last line. can anyone help me ?

Ilian Dinev
05-03-2010, 07:03 PM

int idBind;
unsigned int idBind;

The compiler itself told you what you should do :) .