mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-02 14:43:59 +08: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 b4a14c7ebf
)
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user