mirror of
https://github.com/revyos-package/mesa.git
synced 2026-05-13 08:33:45 +00: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> (cherry picked from commit b4a14c7ebf288d876c821e0da2e877002c3180c6)
This commit is contained in:
committed by
Eric Engestrom
parent
64b0629062
commit
63873590d8
@@ -234,7 +234,7 @@
|
||||
"description": "frontend/nine: Fix missing light flag check",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
||||
@@ -1953,7 +1953,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