projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
controls for fog to select params
[demo]
/
src
/
texture.cc
diff --git
a/src/texture.cc
b/src/texture.cc
index
bbebd7f
..
1d2f37d
100644
(file)
--- a/
src/texture.cc
+++ b/
src/texture.cc
@@
-21,8
+21,9
@@
bool Texture::load(const char *fname)
return true;
}
return true;
}
+ printf("%s NOT LOADED\n", fname);
/* check if it is a cubemap */
/* check if it is a cubemap */
- return load_cubemap(fname);
+ return load_cubemap(fname);
}
bool Texture::load_cubemap(const char *fname)
}
bool Texture::load_cubemap(const char *fname)
@@
-40,7
+41,8
@@
bool Texture::load_cubemap(const char *fname)
if(suffix) {
memmove(suffix + 3, suffix, strlen(suffix) + 1);
memcpy(suffix, suffixes[i], 3);
if(suffix) {
memmove(suffix + 3, suffix, strlen(suffix) + 1);
memcpy(suffix, suffixes[i], 3);
- } else {
+ }
+ else {
strcat(buf, suffixes[i]);
}
strcat(buf, suffixes[i]);
}
@@
-49,7
+51,7
@@
bool Texture::load_cubemap(const char *fname)
images.clear();
return false;
}
images.clear();
return false;
}
- images.push_back(img);
+ images.push_back(img);
}
update();
}
update();
@@
-58,5
+60,5
@@
bool Texture::load_cubemap(const char *fname)
bool Texture::is_cubemap() const
{
bool Texture::is_cubemap() const
{
- return images.size() > 1;
+ return (images.size() > 1);
}
\ No newline at end of file
}
\ No newline at end of file