• Home
  • Raw
  • Download

Lines Matching refs:num_lights

332         unsigned num_lights = MAX2(dst->ff.num_lights, src->ff.num_lights);  in nine_state_copy_common()  local
337 if (dst->ff.num_lights < num_lights) { in nine_state_copy_common()
339 dst->ff.num_lights * sizeof(D3DLIGHT9), in nine_state_copy_common()
340 num_lights * sizeof(D3DLIGHT9)); in nine_state_copy_common()
341 …memset(&dst->ff.light[dst->ff.num_lights], 0, (num_lights - dst->ff.num_lights) * sizeof(D3DLIGHT9… in nine_state_copy_common()
346 for (i = dst->ff.num_lights; i < num_lights; ++i) in nine_state_copy_common()
349 dst->ff.num_lights = num_lights; in nine_state_copy_common()
355 if (src->ff.num_lights < num_lights) { in nine_state_copy_common()
357 src->ff.num_lights * sizeof(D3DLIGHT9), in nine_state_copy_common()
358 num_lights * sizeof(D3DLIGHT9)); in nine_state_copy_common()
359 …memset(&src->ff.light[src->ff.num_lights], 0, (num_lights - src->ff.num_lights) * sizeof(D3DLIGHT9… in nine_state_copy_common()
360 for (i = src->ff.num_lights; i < num_lights; ++i) in nine_state_copy_common()
362 src->ff.num_lights = num_lights; in nine_state_copy_common()
366 for (i = 0; i < num_lights; ++i) in nine_state_copy_common()
497 if (dst->ff.num_lights < src->ff.num_lights) { in nine_state_copy_common_all()
499 dst->ff.num_lights * sizeof(D3DLIGHT9), in nine_state_copy_common_all()
500 src->ff.num_lights * sizeof(D3DLIGHT9)); in nine_state_copy_common_all()
501 dst->ff.num_lights = src->ff.num_lights; in nine_state_copy_common_all()
504 src->ff.light, src->ff.num_lights * sizeof(dst->ff.light[0])); in nine_state_copy_common_all()