Kaynağa Gözat

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

tags/mesa_6_5_2
Keith Whitwell 19 yıl önce
ebeveyn
işleme
c8238aa0ff
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1
    2
      src/mesa/tnl/t_vtx_api.c

+ 1
- 2
src/mesa/tnl/t_vtx_api.c Dosyayı Görüntüle

@@ -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;
}



Loading…
İptal
Kaydet