Skip to content

Commit

Permalink
Merge remote-tracking branch 'ioquake/master' into urt
Browse files Browse the repository at this point in the history
* ioquake/master:
  OpenGL2: Fix crash when BSP has deluxe maps and vertex lit surfaces
  Increase q3_ui .arena filename list buffer size to 4096 bytes
  • Loading branch information
mickael9 committed Feb 18, 2018
2 parents 1042e6b + 00c3480 commit d93f05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderergl2/tr_shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ static void CollapseStagesToLightall(shaderStage_t *diffuse,
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");
diffuse->bundle[TB_DELUXEMAP] = lightmap->bundle[0];
Expand Down

0 comments on commit d93f05d

Please sign in to comment.