mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
frontend/nine: Fix missing clamping of pointsize for ff
Seen while working on this code. It seems to be a sane thing to do. Signed-off-by: Axel Davy <davyaxel0@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22583>
This commit is contained in:
parent
7edae7baa6
commit
02ce3abd8a
1 changed files with 3 additions and 1 deletions
|
|
@ -1956,7 +1956,9 @@ nine_ff_load_point_and_fog_params(struct NineDevice9 *device)
|
|||
return;
|
||||
dst[26].x = asfloat(context->rs[D3DRS_POINTSIZE_MIN]);
|
||||
dst[26].y = asfloat(context->rs[D3DRS_POINTSIZE_MAX]);
|
||||
dst[26].z = asfloat(context->rs[D3DRS_POINTSIZE]);
|
||||
dst[26].z = CLAMP(asfloat(context->rs[D3DRS_POINTSIZE]),
|
||||
asfloat(context->rs[D3DRS_POINTSIZE_MIN]),
|
||||
asfloat(context->rs[D3DRS_POINTSIZE_MAX]));
|
||||
dst[26].w = asfloat(context->rs[D3DRS_POINTSCALE_A]);
|
||||
dst[27].x = asfloat(context->rs[D3DRS_POINTSCALE_B]);
|
||||
dst[27].y = asfloat(context->rs[D3DRS_POINTSCALE_C]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue