]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Start render module CL_MeshEntities immediately prior to Models
authorbones_was_here <bones_was_here@xa.org.au>
Mon, 28 Feb 2022 18:16:58 +0000 (04:16 +1000)
committerbones_was_here <bones_was_here@xa.org.au>
Mon, 28 Feb 2022 18:42:35 +0000 (04:42 +1000)
commitf2b9b8d7f630a2503b35efc8027c2e0930b7b476
tree711b55d21a0be277e9237b4a4f02e355a9a9acf6
parentf02aede58fe2b44b1eba101a09bdef4c99222d32
Start render module CL_MeshEntities immediately prior to Models

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/366

Starting CL_MeshEntities any later can cause the bug during r_restart.

ca03733fba98709e25d9a02882ac947f4144af6a effectively added dependency
of the Models module on the CL_MeshEntities module,
at least in certain situations where starting the Models module
results in calls to Draw_CachePic() and DrawQ_*()
which trigger the bug when they call Mod_Mesh_GetTexture().

Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
cl_main.c
client.h
gl_rmain.c