From 7928a90b13fddaef94b3f20f06dcbf8edeed0643 Mon Sep 17 00:00:00 2001 From: black Date: Tue, 27 Nov 2007 22:39:46 +0000 Subject: [PATCH] Woops - use -1 to mark dirty textures! git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7719 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gl_textures.c b/gl_textures.c index ee927712..a57fe012 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -226,7 +226,7 @@ void R_MarkDirtyTexture(rtexture_t *rt) { if( !glt->dirtytexnum && glt->flags & GLTEXF_DYNAMIC ) { glt->dirtytexnum = glt->texnum; // mark it as dirty, so R_RealGetTexture gets called - glt->texnum = 0; + glt->texnum = -1; } } @@ -239,6 +239,7 @@ void R_MakeTextureDynamic(rtexture_t *rt, updatecallback_t updatecallback, void glt->flags |= GLTEXF_DYNAMIC; glt->updatecallback = updatecallback; glt->updatacallback_data = data; + glt->dirtytexnum = 0; } static void R_UpdateDynamicTexture(gltexture_t *glt) { -- 2.39.2