mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mesa: skip pointsize exports if pointsize attenuation is enabled
attenuation has its own method of exporting pointsize in fixedfunc shaders, so ensure the attenuated size isn't overwritten 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
de732cf61b
commit
3e2c132eb8
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,7 @@
|
|||
static void
|
||||
update_point_size_set(struct gl_context *ctx)
|
||||
{
|
||||
ctx->PointSizeIsSet = ctx->Point.Size == 1.0;
|
||||
ctx->PointSizeIsSet = ctx->Point.Size == 1.0 || ctx->Point._Attenuated;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -128,6 +128,7 @@ _mesa_PointParameterfv( GLenum pname, const GLfloat *params)
|
|||
ctx->Point._Attenuated = (ctx->Point.Params[0] != 1.0F ||
|
||||
ctx->Point.Params[1] != 0.0F ||
|
||||
ctx->Point.Params[2] != 0.0F);
|
||||
update_point_size_set(ctx);
|
||||
break;
|
||||
case GL_POINT_SIZE_MIN_EXT:
|
||||
if (params[0] < 0.0F) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue