]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
Fix drawflag handling in Mod_Mesh_GetTexture by duplicating texture_t when drawflag...
[xonotic/darkplaces.git] / model_shared.h
index 0b377c2c18f79745437ad7cee9aca9f54074ad9a..64c3c7d7995f6a22b0a58c9808181099de169c3a 100644 (file)
@@ -631,6 +631,9 @@ typedef struct texture_s
 
        // diffuse and ambient
        float rtlightambient;
+
+       // used by Mod_Mesh_GetTexture for drawflag overrides, to disambiguate the same texture with different drawflags
+       int drawflag;
 }
  texture_t;