From e448d6cf0c671822f0cb59395c88ff667f4da867 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 9 Jan 2001 00:02:55 +0000 Subject: Added PointSize and PointParametersfv to dd interface, for completeness. Clean-up and updated comments in dd.h file. --- src/mesa/main/points.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/points.c') diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index 3becddb34c..c24b1b4eef 100644 --- a/src/mesa/main/points.c +++ b/src/mesa/main/points.c @@ -1,4 +1,4 @@ -/* $Id: points.c,v 1.26 2000/12/26 05:09:29 keithw Exp $ */ +/* $Id: points.c,v 1.27 2001/01/09 00:02:55 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -59,7 +59,14 @@ _mesa_PointSize( GLfloat size ) ctx->Point._Size = CLAMP(size, ctx->Const.MinPointSize, ctx->Const.MaxPointSize); - ctx->_TriangleCaps ^= DD_POINT_SIZE; + + if (ctx->Point._Size == 1.0F) + ctx->_TriangleCaps &= ~DD_POINT_SIZE; + else + ctx->_TriangleCaps |= DD_POINT_SIZE; + + if (ctx->Driver.PointSize) + (*ctx->Driver.PointSize)(ctx, size); } @@ -136,5 +143,8 @@ _mesa_PointParameterfvEXT( GLenum pname, const GLfloat *params) gl_error( ctx, GL_INVALID_ENUM, "glPointParameterfvEXT" ); return; } + + if (ctx->Driver.PointParameterfv) + (*ctx->Driver.PointParameterfv)(ctx, pname, params); } -- cgit v1.2.3