From 4bfb0cbab250c020cfb990f347366f1a4eca79cd Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 22 Aug 2010 16:48:29 +0000 Subject: [PATCH] change R_Upload error from Host_error to Sys_Error, added texture name to the message git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10412 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_textures.c b/gl_textures.c index 70a3d933..d244f006 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -1078,7 +1078,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) -- 2.39.2