From ed6d5ff6f8fdd34aaaa126119dbd8e1e321859d8 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 27 Sep 2007 10:24:17 -0600 Subject: Restore old _TriangleCaps code to fix Blender problem (bug 12164) --- src/mesa/main/points.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/main/points.c') diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c index 88e4989405..1458c90ab9 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, -- cgit v1.2.3