gl3/gl4: fix count lightmap in mgu5m2

This commit is contained in:
Denis Pauk 2024-03-08 00:37:16 +02:00
parent 3b579eb0d6
commit aea0a9085f
4 changed files with 4 additions and 4 deletions

View file

@ -63,7 +63,7 @@ LM_UploadBlock(void)
if (++gl3_lms.current_lightmap_texture == MAX_LIGHTMAPS)
{
Com_Error(ERR_DROP, "LM_UploadBlock() - MAX_LIGHTMAPS exceeded\n");
Com_Error(ERR_DROP, "%s: MAX_LIGHTMAPS exceeded\n", __func__);
}
}

View file

@ -190,7 +190,7 @@ enum {
// that used 32 lightmaps before into one, so 4 lightmaps should be enough
BLOCK_WIDTH = 1024,
BLOCK_HEIGHT = 512,
MAX_LIGHTMAPS = 4,
MAX_LIGHTMAPS = 8,
MAX_LIGHTMAPS_PER_SURFACE = MAXLIGHTMAPS // 4
};

View file

@ -63,7 +63,7 @@ LM_UploadBlock(void)
if (++gl4_lms.current_lightmap_texture == MAX_LIGHTMAPS)
{
Com_Error(ERR_DROP, "LM_UploadBlock() - MAX_LIGHTMAPS exceeded\n");
Com_Error(ERR_DROP, "%s: MAX_LIGHTMAPS exceeded\n", __func__);
}
}

View file

@ -180,7 +180,7 @@ enum {
// that used 32 lightmaps before into one, so 4 lightmaps should be enough
BLOCK_WIDTH = 1024,
BLOCK_HEIGHT = 512,
MAX_LIGHTMAPS = 4,
MAX_LIGHTMAPS = 8,
MAX_LIGHTMAPS_PER_SURFACE = MAXLIGHTMAPS // 4
};