]> de.git.xonotic.org Git - xonotic/darkplaces.git/commit
Fix drawflag handling in Mod_Mesh_GetTexture by duplicating texture_t when drawflag...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 09:25:29 +0000 (09:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 22 Jan 2020 09:25:29 +0000 (09:25 +0000)
commit4158c4e2c293bb8c3ff3c2cd0e3a1e5859e7e196
tree38a494370a6a01a1da4f904369d3e36df8ad5c11
parent00aec42dd35089cb6f237f7670a575271da6ebd4
Fix drawflag handling in Mod_Mesh_GetTexture by duplicating texture_t when drawflag overrides differ (it still uses the same skinframe_t so it's not duplicating the actual texture).

This fixes a menu issue in Steel Storm: Burning Retribution where the black text over a hover button was being rendered as MATERIALFLAG_ADD due to DRAWFLAG_ADD being used earlier in the frame on the same font image, which made the text invisible.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12505 d7cf8633-e32d-0410-b094-e92efae38249
model_shared.c
model_shared.h