mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 06:40:22 +01:00
tnl: let _TNL_ATTRIB_POINTSIZE do not depend on ctx->VertexProgram._Enabled
We may specify the point size in a glsl vertex shader.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46311
piglit: glsl-vs-point-size
NOTE: This is a candidate for stable release branches.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 9962280c33)
This commit is contained in:
parent
b9f8cb9e0b
commit
fae3a31bbb
1 changed files with 1 additions and 2 deletions
|
|
@ -151,8 +151,7 @@ _tnl_InvalidateState( struct gl_context *ctx, GLuint new_state )
|
|||
if (ctx->RenderMode == GL_FEEDBACK)
|
||||
tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_TEX0);
|
||||
|
||||
if (ctx->Point._Attenuated ||
|
||||
(ctx->VertexProgram._Enabled && ctx->VertexProgram.PointSizeEnabled))
|
||||
if (ctx->Point._Attenuated || ctx->VertexProgram.PointSizeEnabled)
|
||||
tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_POINTSIZE);
|
||||
|
||||
/* check for varying vars which are written by the vertex program */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue