summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vertex.c
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-05-02 12:06:43 -0600
committerBrian <brian@yutani.localnet.net>2007-05-02 12:06:43 -0600
commit5c1b53d58de68582c378e28fbb2fe4c0277139a9 (patch)
tree60e63cdb4e65e274bdf3e084967f907d867329a9 /src/mesa/tnl/t_vertex.c
parentb2f1d6422bee5b08513ae83eb4903c0e20593266 (diff)
Document a deficiency in the _swrast_Translate() function with regard to point size.
Diffstat (limited to 'src/mesa/tnl/t_vertex.c')
-rw-r--r--src/mesa/tnl/t_vertex.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index c666b38742..6aae602037 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -229,7 +229,15 @@ void _tnl_get_attr( GLcontext *ctx, const void *vin,
/* Else return the value from ctx->Current.
*/
- _mesa_memcpy( dest, ctx->Current.Attrib[attr], 4*sizeof(GLfloat));
+ if (attr == _TNL_ATTRIB_POINTSIZE) {
+ /* If the hardware vertex doesn't have point size then use size from
+ * GLcontext. XXX this will be wrong if drawing attenuated points!
+ */
+ dest[0] = ctx->Point._Size;
+ }
+ else {
+ _mesa_memcpy( dest, ctx->Current.Attrib[attr], 4*sizeof(GLfloat));
+ }
}