]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
Add Baker's fix for spplying default lightstyle to q3bsp
[xonotic/darkplaces.git] / gl_rmain.c
index e5bd8576989c4c0aca27ce7d7577075a21343f76..28806317dba62ddf78b7cdda947a11ea96a0baa3 100644 (file)
@@ -5489,6 +5489,11 @@ void R_UpdateVariables(void)
        if (r_refdef.scene.worldmodel)
        {
                r_refdef.scene.lightmapintensity *= r_refdef.scene.worldmodel->lightmapscale;
+
+               // Apply the default lightstyle to the lightmap even on q3bsp
+               if (cl.worldmodel && cl.worldmodel->type == mod_brushq3) {
+                       r_refdef.scene.lightmapintensity *= r_refdef.scene.rtlightstylevalue[0];
+               }
        }
        if (r_showsurfaces.integer)
        {