Lines Matching defs:ctx
43 line_width(struct gl_context *ctx, GLfloat width, bool no_error)
46 if (ctx->Line.Width == width)
50 _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" );
64 if (!no_error && ctx->API == API_OPENGL_CORE
65 && ((ctx->Const.ContextFlags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT)
68 _mesa_error( ctx, GL_INVALID_VALUE, "glLineWidth" );
72 FLUSH_VERTICES(ctx, 0, GL_LINE_BIT);
73 ctx->NewDriverState |= ST_NEW_RASTERIZER;
74 ctx->Line.Width = width;
81 GET_CURRENT_CONTEXT(ctx);
82 line_width(ctx, width, true);
89 GET_CURRENT_CONTEXT(ctx);
92 _mesa_debug(ctx, "glLineWidth %f\n", width);
94 line_width(ctx, width, false);
113 GET_CURRENT_CONTEXT(ctx);
116 _mesa_debug(ctx, "glLineStipple %d %u\n", factor, pattern);
120 if (ctx->Line.StippleFactor == factor &&
121 ctx->Line.StipplePattern == pattern)
124 FLUSH_VERTICES(ctx, 0, GL_LINE_BIT);
125 ctx->NewDriverState |= ST_NEW_RASTERIZER;
126 ctx->Line.StippleFactor = factor;
127 ctx->Line.StipplePattern = pattern;
134 * \param ctx GL context.
140 _mesa_init_line( struct gl_context * ctx )
142 ctx->Line.SmoothFlag = GL_FALSE;
143 ctx->Line.StippleFlag = GL_FALSE;
144 ctx->Line.Width = 1.0;
145 ctx->Line.StipplePattern = 0xffff;
146 ctx->Line.StippleFactor = 1;