mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-26 05:52:03 +00:00
OpenGL2: Fix crash when BSP has deluxe maps and vertex lit surfaces
Reported by Mickaël Thomas (mickael9).
This commit is contained in:
parent
d1f82ed567
commit
00c3480938
1 changed files with 1 additions and 1 deletions
|
@ -2232,7 +2232,7 @@ static void CollapseStagesToLightall(shaderStage_t *diffuse,
|
||||||
defs |= LIGHTDEF_USE_LIGHT_VERTEX;
|
defs |= LIGHTDEF_USE_LIGHT_VERTEX;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r_deluxeMapping->integer && tr.worldDeluxeMapping && lightmap)
|
if (r_deluxeMapping->integer && tr.worldDeluxeMapping && lightmap && shader.lightmapIndex >= 0)
|
||||||
{
|
{
|
||||||
//ri.Printf(PRINT_ALL, ", deluxemap");
|
//ri.Printf(PRINT_ALL, ", deluxemap");
|
||||||
diffuse->bundle[TB_DELUXEMAP] = lightmap->bundle[0];
|
diffuse->bundle[TB_DELUXEMAP] = lightmap->bundle[0];
|
||||||
|
|
Loading…
Reference in a new issue