rem: wwarning(_("could not render texture: %s"), RErrorString);
add: wwarning(_("could not render texture: %s"), RMessageForError(RErrorCode));
context: wTextureRenderImage(WTexture *texture, int width, int height, int relief){    RImage *image;    RColor color1, color2;    int d;    int subtype;        switch (texture->any.type) {     case WTEX_SOLID:	image = RCreateImage(width, height, False);		color1.red = texture->solid.normal.red >> 8;	color1.green = texture->solid.normal.green >> 8;	color1.blue = texture->solid.normal.blue >> 8;        color1.alpha = 255;        	RClearImage(image, &color1);	break;	     case WTEX_PIXMAP:	if (texture->pixmap.subtype == WTP_TILE) {            image = RMakeTiledImage(texture->pixmap.pixmap, width, height);        } else if (texture->pixmap.subtype == WTP_CENTER) {            color1.red = texture->pixmap.normal.red>>8;            color1.green = texture->pixmap.normal.green>>8;            color1.blue = texture->pixmap.normal.blue>>8;            color1.alpha = 255;            image = RMakeCenteredImage(texture->pixmap.pixmap, width, height,                                       &color1);        } else {            image = RScaleImage(texture->pixmap.pixmap, width, height);        }	break;	     case WTEX_HGRADIENT:	subtype = RGRD_HORIZONTAL;	goto render_gradient;	     case WTEX_VGRADIENT:	subtype = RGRD_VERTICAL;	goto render_gradient;	     case WTEX_DGRADIENT:	subtype = RGRD_DIAGONAL;     render_gradient:	color1.red = texture->gradient.color1.red >> 8;	color1.green = texture->gradient.color1.green >> 8;	color1.blue = texture->gradient.color1.blue >> 8;	color2.red = texture->gradient.color2.red >> 8;	color2.green = texture->gradient.color2.green >> 8;	color2.blue = texture->gradient.color2.blue >> 8;	image = RRenderGradient(width, height, &color1, &color2, subtype);	break;	     case WTEX_MHGRADIENT:	subtype = RGRD_HORIZONTAL;	goto render_mgradient;     case WTEX_MVGRADIENT:	subtype = RGRD_VERTICAL;	goto render_mgradient;	     case WTEX_MDGRADIENT:	subtype = RGRD_DIAGONAL;     render_mgradient:	image = RRenderMultiGradient(width, height, 				     &(texture->mgradient.colors[1]),				     subtype);	break;	     default:	puts("ERROR in wTextureRenderImage()");	image = NULL;    }    if (!image) {	wwarning(_("could not render texture: %s"), RErrorString);	return None;    }    /* render bevel */        switch (relief) {    case WREL_ICON:	d = RBEV_RAISED3;	break;     case WREL_RAISED:	d = RBEV_RAISED2;	break;	     case WREL_SUNKEN:	d = RBEV_SUNKEN;	break;	     case WREL_FLAT:	d = 0;	break;     case WREL_MENUENTRY:	d = -WREL_MENUENTRY;	break;     default:	d = 0;    }        if (d > 0) {	RBevelImage(image, d);    } else if (d < 0) {	bevelImage(image, -d);    }        return image;}