}
if (q.flags.q.point_mode) {
- if (this->flags.q.point_mode && this->point_mode != q.point_mode) {
- _mesa_glsl_error(loc, state, "conflicting point mode used");
- return false;
- }
+ /* Point mode can only be true if the flag is set. */
+ assert (!this->flags.q.point_mode || (this->point_mode && q.point_mode));
this->flags.q.point_mode = 1;
this->point_mode = q.point_mode;
}
"conflicting ordering specified");
}
- if (state->in_qualifier->flags.q.point_mode && this->flags.q.point_mode
- && state->in_qualifier->point_mode != this->point_mode) {
- r = false;
- _mesa_glsl_error(loc, state,
- "conflicting point mode specified");
- }
+ /* Point mode can only be true if the flag is set. */
+ assert (!state->in_qualifier->flags.q.point_mode
+ || !this->flags.q.point_mode
+ || (state->in_qualifier->point_mode && this->point_mode));
return r;
}