dzn: Use fabs on floating point input
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17423>
This commit is contained in:
parent
2ace7832f9
commit
5a59211acd
|
@ -281,7 +281,7 @@ dzn_translate_viewport(D3D12_VIEWPORT *out,
|
|||
out->TopLeftX = in->x;
|
||||
out->TopLeftY = in->height < 0 ? in->height + in->y : in->y;
|
||||
out->Width = in->width;
|
||||
out->Height = abs(in->height);
|
||||
out->Height = fabs(in->height);
|
||||
out->MinDepth = MIN2(in->minDepth, in->maxDepth);
|
||||
out->MaxDepth = MAX2(in->maxDepth, in->minDepth);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue