]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
change R_Upload error from Host_error to Sys_Error, added texture name
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Aug 2010 16:48:29 +0000 (16:48 +0000)
committerRudolf Polzer <divVerent@alientrap.org>
Tue, 24 Aug 2010 13:49:40 +0000 (15:49 +0200)
to the message

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10412 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4bfb0cbab250c020cfb990f347366f1a4eca79cd

gl_textures.c

index 2a2f31ad5b39d7a7d60c35e2eb42bd35d79b80f6..c358bf593d2c6a1450dee39bcb246a97d5bc6efb 100644 (file)
@@ -812,7 +812,7 @@ static void R_Upload(gltexture_t *glt, const unsigned char *data, int fragx, int
        else
        {
                if (fragx || fragy || fragz || glt->inputwidth != fragwidth || glt->inputheight != fragheight || glt->inputdepth != fragdepth)
-                       Host_Error("R_Upload: partial update not allowed on initial upload or in combination with PICMIP or MIPMAP\n");
+                       Sys_Error("R_Upload \"%s\": partial update not allowed on initial upload or in combination with PICMIP or MIPMAP\n", glt->identifier);
 
                // cubemaps contain multiple images and thus get processed a bit differently
                if (glt->texturetype != GLTEXTURETYPE_CUBEMAP)