]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
check texnum > 0 rather than >= 0
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Oct 2008 10:49:39 +0000 (10:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 23 Oct 2008 10:49:39 +0000 (10:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8538 d7cf8633-e32d-0410-b094-e92efae38249

r_textures.h

index f31460acf139365b25de55bde9f03e2eae069a9f..3af696e46d3f04d5b753b07e46dbe9d73af7fab3 100644 (file)
@@ -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)