]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
q3 shaders are now supported on all model and map formats
[xonotic/darkplaces.git] / cl_parse.c
index 7c0dac208cc72daecf7ea9cf22e10d7d0e1f2eb3..a1d650d5288f90f08e128511db50ef0b6b280e2f 100644 (file)
@@ -477,6 +477,9 @@ static void QW_CL_RequestNextDownload(void)
 
                cls.qw_downloadtype = dl_none;
 
+               // parse the Q3 shader files
+               Mod_LoadQ3Shaders();
+
                // touch all of the precached models that are still loaded so we can free
                // anything that isn't needed
                if (!sv.active)
@@ -945,6 +948,10 @@ void CL_BeginDownloads(qboolean aborteddownload)
        {
                // loading models
 
+               // parse the Q3 shader files
+               if (cl.loadmodel_current < 2)
+                       Mod_LoadQ3Shaders();
+
                for (;cl.loadmodel_current < cl.loadmodel_total;cl.loadmodel_current++)
                {
                        if (cl.model_precache[cl.loadmodel_current] && cl.model_precache[cl.loadmodel_current]->Draw)