Home | History | Annotate | Download | only in main

Lines Matching refs:ctx

38    GET_CURRENT_CONTEXT(ctx);
39 ASSERT_OUTSIDE_BEGIN_END(ctx);
42 _mesa_debug(ctx, "glScissor %d %d %d %d\n", x, y, width, height);
45 _mesa_error( ctx, GL_INVALID_VALUE, "glScissor" );
49 _mesa_set_scissor(ctx, x, y, width, height);
67 _mesa_set_scissor(struct gl_context *ctx,
70 if (x == ctx->Scissor.X &&
71 y == ctx->Scissor.Y &&
72 width == ctx->Scissor.Width &&
73 height == ctx->Scissor.Height)
76 FLUSH_VERTICES(ctx, _NEW_SCISSOR);
77 ctx->Scissor.X = x;
78 ctx->Scissor.Y = y;
79 ctx->Scissor.Width = width;
80 ctx->Scissor.Height = height;
82 if (ctx->Driver.Scissor)
83 ctx->Driver.Scissor( ctx, x, y, width, height );
89 * \param ctx the GL context.
92 _mesa_init_scissor(struct gl_context *ctx)
95 ctx->Scissor.Enabled = GL_FALSE;
96 ctx->Scissor.X = 0;
97 ctx->Scissor.Y = 0;
98 ctx->Scissor.Width = 0;
99 ctx->Scissor.Height = 0;