Procházet zdrojové kódy

Move setting of _NEW_LIGHT to only occur when materials are present.

tags/mesa_6_5_2
Keith Whitwell před 19 roky
rodič
revize
c8238aa0ff
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1
    2
      src/mesa/tnl/t_vtx_api.c

+ 1
- 2
src/mesa/tnl/t_vtx_api.c Zobrazit soubor

@@ -171,11 +171,10 @@ static void _tnl_copy_to_current( GLcontext *ctx )

if (tnl->vtx.have_materials) {
tnl->Driver.NotifyMaterialChange( ctx );
ctx->NewState |= _NEW_LIGHT;
}
ctx->Driver.NeedFlush &= ~FLUSH_UPDATE_CURRENT;

ctx->NewState |= _NEW_LIGHT;
}



Načítá se…
Zrušit
Uložit