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 ?