mesa: enforce pointsize exports if pointsize is being clamped
min/max pointsize clamping affects the value that must be used, meaning that it may not be 1.0 in the case where clamping changes the value from 1.0, ensure the shader export path is used if attenuation isn't enabled Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17145>
This commit is contained in:
parent
3e2c132eb8
commit
096c5aa34a
|
@ -39,7 +39,8 @@
|
|||
static void
|
||||
update_point_size_set(struct gl_context *ctx)
|
||||
{
|
||||
ctx->PointSizeIsSet = ctx->Point.Size == 1.0 || ctx->Point._Attenuated;
|
||||
float size = CLAMP(ctx->Point.Size, ctx->Point.MinSize, ctx->Point.MaxSize);
|
||||
ctx->PointSizeIsSet = (size == 1.0 && ctx->Point.Size == 1.0) || ctx->Point._Attenuated;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue