mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
r300: Fix point minmax size
There are 6 subpixel units per pixel, not 16.
This commit is contained in:
parent
322677b878
commit
e88be7d375
1 changed files with 2 additions and 2 deletions
|
|
@ -881,12 +881,12 @@ static void r300PointParameter(GLcontext * ctx, GLenum pname, const GLfloat * pa
|
|||
case GL_POINT_SIZE_MIN:
|
||||
R300_STATECHANGE(r300, ga_point_minmax);
|
||||
r300->hw.ga_point_minmax.cmd[1] &= ~R300_GA_POINT_MINMAX_MIN_MASK;
|
||||
r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MinSize * 16.0);
|
||||
r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MinSize * 6.0);
|
||||
break;
|
||||
case GL_POINT_SIZE_MAX:
|
||||
R300_STATECHANGE(r300, ga_point_minmax);
|
||||
r300->hw.ga_point_minmax.cmd[1] &= ~R300_GA_POINT_MINMAX_MAX_MASK;
|
||||
r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MaxSize * 16.0)
|
||||
r300->hw.ga_point_minmax.cmd[1] |= (GLuint)(ctx->Point.MaxSize * 6.0)
|
||||
<< R300_GA_POINT_MINMAX_MAX_SHIFT;
|
||||
break;
|
||||
case GL_POINT_DISTANCE_ATTENUATION:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue