diff options
author | Eric Anholt <[email protected]> | 2013-02-20 12:58:47 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-02-22 10:55:39 -0800 |
commit | 92a204b493b447b1cbb06a3d2d350a1e6d2c6887 (patch) | |
tree | 0cfa8df85e050e4fe68a419517d4186cc6343357 /src/mesa/main/context.c | |
parent | 7b0731d940c758ca9c1e883cdea454d8787255c1 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index e5ed97f00aa..02acfc2aa5b 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1073,7 +1073,6 @@ _mesa_initialize_context(struct gl_context *ctx, case API_OPENGLES2: ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE; ctx->VertexProgram._MaintainTnlProgram = GL_TRUE; - ctx->Point.PointSprite = GL_TRUE; /* always on for ES 2.x */ break; } |