mesa: Fix setup of ctx->Point.PointSprite for GLES2.
authorEric Anholt <eric@anholt.net>
Wed, 20 Feb 2013 20:58:47 +0000 (12:58 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 22 Feb 2013 18:55:39 +0000 (10:55 -0800)
commit92a204b493b447b1cbb06a3d2d350a1e6d2c6887
tree0cfa8df85e050e4fe68a419517d4186cc6343357
parent7b0731d940c758ca9c1e883cdea454d8787255c1
mesa: Fix setup of ctx->Point.PointSprite for GLES2.

The recent change for GL core broke the older setup, which broke
gl_PointCoord on pre-gen6 (where gl_PointCoord is undefined if point
sprites are disabled).  Fixes the new piglit GLES-2.0/glsl-fs-pointcoord
test.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32429
Note: This is a candidate for the stable branches.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/context.c
src/mesa/main/points.c