diff options
author | Brian Paul <[email protected]> | 2001-01-09 00:02:55 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-01-09 00:02:55 +0000 |
commit | e448d6cf0c671822f0cb59395c88ff667f4da867 (patch) | |
tree | f862cb3d2f088eda8d49d587b7af9b2333756bbb /src/mesa/main/points.c | |
parent | ce656b6a0a103ae9cb41d509be353f0e661e3574 (diff) |
Added PointSize and PointParametersfv to dd interface, for completeness.
Clean-up and updated comments in dd.h file.
Diffstat (limited to 'src/mesa/main/points.c')
-rw-r--r-- | src/mesa/main/points.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index 3becddb34cc..c24b1b4eef3 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); } |