The clip state is updated before VS, so it can be NULL for the first draw
call. Just remove the unnecessary dependency on st->vp.
Reviewed-by: Brian Paul <brianp@vmware.com>
/* if we have a vertex shader that writes clip vertex we need to pass
the pre-projection transformed coordinates into the driver. */
- if (st->vp) {
- if (ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX])
- use_eye = TRUE;
- }
+ if (ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX])
+ use_eye = TRUE;
/* _ClipUserPlane = _NEW_TRANSFORM | _NEW_PROJECTION
* EyeUserPlane = _NEW_TRANSFORM