From: havoc Date: Thu, 23 Oct 2008 10:49:39 +0000 (+0000) Subject: check texnum > 0 rather than >= 0 X-Git-Tag: xonotic-v0.1.0preview~2051 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d5f20fb23e1d7ffd99d6cac05f8562dd100910c;p=xonotic%2Fdarkplaces.git check texnum > 0 rather than >= 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8538 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_textures.h b/r_textures.h index f31460ac..3af696e4 100644 --- a/r_textures.h +++ b/r_textures.h @@ -87,7 +87,7 @@ void R_UpdateTexture(rtexture_t *rt, const unsigned char *data, int x, int y, in // returns the renderer dependent texture slot number (call this before each // use, as a texture might not have been precached) -#define R_GetTexture(rt) ((rt) ? ((rt)->texnum >= 0 ? (rt)->texnum : R_RealGetTexture(rt)) : r_texture_white->texnum) +#define R_GetTexture(rt) ((rt) ? ((rt)->texnum > 0 ? (rt)->texnum : R_RealGetTexture(rt)) : r_texture_white->texnum) int R_RealGetTexture (rtexture_t *rt); // returns true if the texture is transparent (useful for rendering code)