summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/points.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-12 10:00:36 -0600
committerBrian Paul <[email protected]>2008-08-12 10:00:36 -0600
commitaf3d9dba562813ffed71691bffd7faf6665c4487 (patch)
tree475b9c9cd0fec00b919205ac0b39e103752d0cc2 /src/mesa/main/points.c
parent49c2ee9d99e25c8977c67c490af2416f85d3092b (diff)
mesa: set point state
Diffstat (limited to 'src/mesa/main/points.c')
-rw-r--r--src/mesa/main/points.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index fbedbcb22c4..d16344a42c3 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -244,7 +244,11 @@ _mesa_init_point(GLcontext *ctx)
ctx->Point.MaxSize
= MAX2(ctx->Const.MaxPointSize, ctx->Const.MaxPointSizeAA);
ctx->Point.Threshold = 1.0;
+#if FEATURE_es2_glsl
+ ctx->Point.PointSprite = GL_TRUE; /* GL_ARB/NV_point_sprite */
+#else
ctx->Point.PointSprite = GL_FALSE; /* GL_ARB/NV_point_sprite */
+#endif
ctx->Point.SpriteRMode = GL_ZERO; /* GL_NV_point_sprite (only!) */
ctx->Point.SpriteOrigin = GL_UPPER_LEFT; /* GL_ARB_point_sprite */
for (i = 0; i < MAX_TEXTURE_UNITS; i++) {