]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
slight optimizations to bsp renderer
[xonotic/darkplaces.git] / model_brush.h
index e99f07cd9b66c3570a68ab797ee75e6fa549a0fe..56f34e33e9c9056d9da5cd9b6a5cb7e4f849abb3 100644 (file)
@@ -158,6 +158,8 @@ typedef struct msurface_s
        texture_t *texture;
        // the lightmap texture fragment to use on the rendering mesh
        rtexture_t *lightmaptexture;
+       // if lightmap settings changed, this forces update
+       int cached_dlight; // q1bsp
        // mesh for rendering
        surfmesh_t mesh;
        // index into model->brush.shadowmesh
@@ -179,8 +181,6 @@ typedef struct msurface_s
        int lightmaptexturestride; // q1bsp
        int texturemins[2]; // q1bsp
        int extents[2]; // q1bsp
-       // if lightmap settings changed, this forces update
-       int cached_dlight; // q1bsp
 
        struct q3deffect_s *effect; // q3bsp
        // FIXME: collisionmarkframe should be kept in a separate array