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:
committed by
David Heidelberg
parent
d3cec6cdf1
commit
b4a14c7ebf
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user