support for floating point images => needed for skybox
[demo] / src / texture.cc
index bbebd7f..1d2f37d 100644 (file)
@@ -21,8 +21,9 @@ bool Texture::load(const char *fname)
                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)
@@ -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);
-               } else {
+               }
+               else {
                        strcat(buf, suffixes[i]);
                }
 
@@ -49,7 +51,7 @@ bool Texture::load_cubemap(const char *fname)
                        images.clear();
                        return false;
                }
-               images.push_back(img);  
+               images.push_back(img);
        }
 
        update();
@@ -58,5 +60,5 @@ bool Texture::load_cubemap(const char *fname)
 
 bool Texture::is_cubemap() const
 {
-       return images.size() > 1;
+       return (images.size() > 1);
 }
\ No newline at end of file