mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
frontend/nine: Fix missing light flag check
The constants for ff lights use the VIEW matrix, thus we must update them if the matrix is dirty. Cc: mesa-stable Signed-off-by: Axel Davy <davyaxel0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28232>
This commit is contained in:
parent
d3cec6cdf1
commit
b4a14c7ebf
1 changed files with 1 additions and 1 deletions
|
|
@ -1951,7 +1951,7 @@ nine_ff_load_lights(struct NineDevice9 *device)
|
|||
dst[19].z = dst[25].z * mtl->Ambient.b + mtl->Emissive.b;
|
||||
}
|
||||
|
||||
if (!(context->changed.group & NINE_STATE_FF_LIGHTING))
|
||||
if (!(context->changed.group & NINE_STATE_FF_LIGHTING) && !IS_D3DTS_DIRTY(context, VIEW))
|
||||
return;
|
||||
|
||||
for (l = 0; l < context->ff.num_lights_active; ++l) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue