
Go to the source code of this file.
Functions | |
| static void | update_stipple (struct st_context *st) |
Variables | |
| struct st_tracked_state | st_update_polygon_stipple |
| static void update_stipple | ( | struct st_context * | st | ) | [static] |
Definition at line 43 of file st_atom_stipple.c.
References assert, st_context::ctx, st_context::pipe, st_context::poly_stipple, pipe_context::set_polygon_stipple, st_context::state, and pipe_poly_stipple::stipple.
00044 { 00045 const GLuint sz = sizeof(st->state.poly_stipple.stipple); 00046 assert(sz == sizeof(st->ctx->PolygonStipple)); 00047 00048 if (memcmp(&st->state.poly_stipple.stipple, st->ctx->PolygonStipple, sz)) { 00049 /* state has changed */ 00050 memcpy(st->state.poly_stipple.stipple, st->ctx->PolygonStipple, sz); 00051 st->pipe->set_polygon_stipple(st->pipe, &st->state.poly_stipple); 00052 } 00053 }
Initial value:
{
"st_update_polygon_stipple",
{
(_NEW_POLYGONSTIPPLE),
0,
},
update_stipple
}
Definition at line 56 of file st_atom_stipple.c.
1.5.4