In some cases the wrong computation led the
normal to be zero instead of the correct value,
which led to artifacts.
Fixes: https://github.com/iXit/wine-nine-standalone/issues/105
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
unsigned i, c;
unsigned label[32], l = 0;
boolean need_aNrm = key->lighting || key->passthrough & (1 << NINE_DECLUSAGE_NORMAL);
- boolean has_aNrm = need_aNrm && key->has_normal;
+ boolean has_aNrm;
boolean need_aVtx = key->lighting || key->fog_mode || key->pointscale || key->ucp;
const unsigned texcoord_sn = get_texcoord_sn(device->screen);
}
}
+ has_aNrm = need_aNrm && key->has_normal;
+
/* Declare and record used inputs (needed for linkage with vertex format):
* (texture coordinates handled later)
*/