summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Dvorak <[email protected]>2007-07-29 18:26:55 -0600
committerBrian <[email protected]>2007-07-29 18:26:55 -0600
commit3e3d392e1cd47fa790131b6f7dbc1846f2081567 (patch)
tree00ef6b1005a6876784ce34ab7587eda9d9554110 /src
parent756a7a4e4bba56351abea5c664f5a6868e547697 (diff)
fix glPointParameteriv bug 11754
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/points.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index 8674c7299c5..408b68a7430 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -5,7 +5,7 @@
/*
* Mesa 3-D graphics library
- * Version: 7.0
+ * Version: 7.0.1
*
* Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
*
@@ -85,8 +85,13 @@ _mesa_PointParameteriNV( GLenum pname, GLint param )
void GLAPIENTRY
_mesa_PointParameterivNV( GLenum pname, const GLint *params )
{
- const GLfloat value = (GLfloat) params[0];
- _mesa_PointParameterfvEXT(pname, &value);
+ GLfloat p[3];
+ p[0] = (GLfloat) params[0];
+ if (pname == GL_DISTANCE_ATTENUATION_EXT) {
+ p[1] = (GLfloat) params[1];
+ p[2] = (GLfloat) params[2];
+ }
+ _mesa_PointParameterfvEXT(pname, p);
}