return true;
}
+ printf("%s NOT LOADED\n", fname);
/* check if it is a cubemap */
- return load_cubemap(fname);
+ return load_cubemap(fname);
}
bool Texture::load_cubemap(const char *fname)
if(suffix) {
memmove(suffix + 3, suffix, strlen(suffix) + 1);
memcpy(suffix, suffixes[i], 3);
- } else {
+ }
+ else {
strcat(buf, suffixes[i]);
}
images.clear();
return false;
}
- images.push_back(img);
+ images.push_back(img);
}
update();
bool Texture::is_cubemap() const
{
- return images.size() > 1;
+ return (images.size() > 1);
}
\ No newline at end of file