diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2004-09-20 08:33:38 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2004-09-20 08:33:38 +0000 |
commit | e2b13e4af3a31da9097ec8a1bbbaaf897c52b8f3 (patch) | |
tree | ef006578f90239ea8396091c3bd2d3bec772c679 /src/mesa/drivers/glide | |
parent | c59270e2b82abe9bcb0af6a1593b81772f6306d3 (diff) |
clamp size of wide points
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r-- | src/mesa/drivers/glide/fxtris.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/glide/fxtris.c b/src/mesa/drivers/glide/fxtris.c index 05fe1b2ecd..4270ceb0af 100644 --- a/src/mesa/drivers/glide/fxtris.c +++ b/src/mesa/drivers/glide/fxtris.c @@ -351,7 +351,9 @@ static void fx_draw_point_wide ( fxMesaContext fxMesa, GrVertex *_v_[3]; const GLcontext *ctx = fxMesa->glCtx; - const GLfloat psize = (ctx->_TriangleCaps & DD_POINT_ATTEN) ? v0->psize : ctx->Point.Size; + const GLfloat psize = (ctx->_TriangleCaps & DD_POINT_ATTEN) + ? CLAMP(v0->psize, ctx->Point.MinSize, ctx->Point.MaxSize) + : ctx->Point._Size; /* clamped */ if (ctx->Point.PointSprite) { fx_draw_point_sprite(fxMesa, v0, psize); @@ -426,7 +428,9 @@ static void fx_draw_point_wide_aa ( fxMesaContext fxMesa, GrVertex vtxB, vtxC; const GLcontext *ctx = fxMesa->glCtx; - const GLfloat psize = (ctx->_TriangleCaps & DD_POINT_ATTEN) ? v0->psize : ctx->Point.Size; + const GLfloat psize = (ctx->_TriangleCaps & DD_POINT_ATTEN) + ? CLAMP(v0->psize, ctx->Point.MinSize, ctx->Point.MaxSize) + : ctx->Point._Size; /* clamped */ if (ctx->Point.PointSprite) { fx_draw_point_sprite(fxMesa, v0, psize); |