]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
improved error message for missing cubemap images, no longer complains during cubemap...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2004 14:46:06 +0000 (14:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2004 14:46:06 +0000 (14:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3907 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 0e8b6ccc00ad34c25c809dc0481347f1f6246d6f..e57f8515a8bcf38d842e14ac2f7120b19a694df8 100644 (file)
@@ -1906,7 +1906,7 @@ rtexture_t *R_Shadow_LoadCubemap(const char *basename)
                for (i = 0;i < 6;i++)
                {
                        snprintf(name, sizeof(name), "%s%s", basename, suffix[j][i].suffix);
                for (i = 0;i < 6;i++)
                {
                        snprintf(name, sizeof(name), "%s%s", basename, suffix[j][i].suffix);
-                       if ((image_rgba = loadimagepixels(name, true, cubemapsize, cubemapsize)))
+                       if ((image_rgba = loadimagepixels(name, false, cubemapsize, cubemapsize)))
                        {
                                if (image_width == image_height)
                                {
                        {
                                if (image_width == image_height)
                                {
@@ -1933,7 +1933,13 @@ rtexture_t *R_Shadow_LoadCubemap(const char *basename)
                Mem_Free(cubemappixels);
        }
        else
                Mem_Free(cubemappixels);
        }
        else
-               Con_Printf("Failed to load Cubemap \"%s\"\n", basename);
+       {
+               Con_Printf("Failed to load Cubemap \"%s\", tried ", basename);
+               for (j = 0;j < 3;j++)
+                       for (i = 0;i < 6;i++)
+                               Con_Printf("%s\"%s%s.tga\"", j + i > 0 ? ", " : "", basename, suffix[j][i].suffix);
+               Con_Printf(" and was unable to find any of them.\n");
+       }
        return cubemaptexture;
 }
 
        return cubemaptexture;
 }