[vulkan] Disable lightmap support

Hopefully, it won't be needed.
This commit is contained in:
Bill Currie 2021-03-20 18:02:27 +09:00
parent 0246e55983
commit cadea27577
3 changed files with 5 additions and 6 deletions

View File

@ -270,7 +270,6 @@ libs_video_renderer_librender_vulkan_la_SOURCES = \
libs/video/renderer/vulkan/vulkan_compose.c \
libs/video/renderer/vulkan/vulkan_draw.c \
libs/video/renderer/vulkan/vulkan_lighting.c \
libs/video/renderer/vulkan/vulkan_lightmap.c \
libs/video/renderer/vulkan/vulkan_main.c \
libs/video/renderer/vulkan/vulkan_matrices.c \
libs/video/renderer/vulkan/vulkan_particles.c \

View File

@ -202,7 +202,7 @@ Vulkan_ClearElements (vulkan_ctx_t *ctx)
release_elechains (bctx);
release_elementss (bctx);
}
/*
static void
update_lightmap (mod_brush_t *brush, msurface_t *surf, vulkan_ctx_t *ctx)
{
@ -218,7 +218,7 @@ dynamic:
Vulkan_BuildLightMap (brush, surf, ctx);
}
}
*/
static inline void
chain_surface (mod_brush_t *brush, msurface_t *surf, vec_t *transform,
float *color, vulkan_ctx_t *ctx)
@ -241,7 +241,7 @@ chain_surface (mod_brush_t *brush, msurface_t *surf, vec_t *transform,
tex = tx->render;
CHAIN_SURF_F2B (surf, tex->tex_chain);
update_lightmap (brush, surf, ctx);
//update_lightmap (brush, surf, ctx);
}
if (!(is = surf->instsurf))
is = surf->tinst;
@ -1149,7 +1149,7 @@ Vulkan_DrawWorld (vulkan_ctx_t *ctx)
}
}
Vulkan_FlushLightmaps (ctx);
//Vulkan_FlushLightmaps (ctx);
bsp_begin (ctx);
push_transform (identity, bctx->layout, dfunc,

View File

@ -214,7 +214,7 @@ Vulkan_NewMap (model_t *worldmodel, struct model_s **models, int num_models,
R_FreeAllEntities ();
Vulkan_ClearParticles (ctx);
Vulkan_RegisterTextures (models, num_models, ctx);
Vulkan_BuildLightmaps (models, num_models, ctx);
//Vulkan_BuildLightmaps (models, num_models, ctx);
Vulkan_BuildDisplayLists (models, num_models, ctx);
Vulkan_LoadLights (worldmodel, worldmodel->brush.entities, ctx);
}