summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/points.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-09-27 10:24:17 -0600
committerBrian <[email protected]>2007-09-27 10:39:01 -0600
commited6d5ff6f8fdd34aaaa126119dbd8e1e321859d8 (patch)
treefc96d0a93505aa755e0b0889b6f0d3f7273ffb5d /src/mesa/main/points.c
parent4f9d29cd4e876cd202a7d3e81f6d91fc7f9625a2 (diff)
Restore old _TriangleCaps code to fix Blender problem (bug 12164)
Diffstat (limited to 'src/mesa/main/points.c')
-rw-r--r--src/mesa/main/points.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index 88e49894055..1458c90ab97 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -123,6 +123,11 @@ _mesa_PointParameterfvEXT( GLenum pname, const GLfloat *params)
ctx->Point._Attenuated = (ctx->Point.Params[0] != 1.0 ||
ctx->Point.Params[1] != 0.0 ||
ctx->Point.Params[2] != 0.0);
+
+ if (ctx->Point._Attenuated)
+ ctx->_TriangleCaps |= DD_POINT_ATTEN;
+ else
+ ctx->_TriangleCaps &= ~DD_POINT_ATTEN;
}
else {
_mesa_error(ctx, GL_INVALID_ENUM,