r300: recalculate point size, if point min/max size changes
authorMaciej Cencora <m.cencora@gmail.com>
Sat, 6 Mar 2010 12:39:13 +0000 (13:39 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Sun, 7 Mar 2010 11:00:48 +0000 (12:00 +0100)
Fixes two wine d3d9 unit tests

src/mesa/drivers/dri/r300/r300_state.c

index 6c2c367aabc1dcd39f6de0c79403d60f01706290..5a056f018d183150eba4fa6e4641c7a8b347c0fd 100644 (file)
@@ -794,12 +794,14 @@ static void r300PointParameter(GLcontext * ctx, GLenum pname, const GLfloat * pa
                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 * 6.0);
+               r300PointSize(ctx, ctx->Point.Size);
                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 * 6.0)
                        << R300_GA_POINT_MINMAX_MAX_SHIFT;
+               r300PointSize(ctx, ctx->Point.Size);
                break;
        case GL_POINT_DISTANCE_ATTENUATION:
                break;