Searched refs:get_safe (Results 1 – 1 of 1) sorted by relevance
41 #define get_safe(ptr, field) ((ptr) ? (ptr)->field : 0) macro447 bool discard = get_safe(ctx->rasterizer, rasterizer_discard); in fd_rasterizer_state_bind()448 unsigned clip_plane_enable = get_safe(ctx->rasterizer, clip_plane_enable); in fd_rasterizer_state_bind()467 if (discard != get_safe(ctx->rasterizer, rasterizer_discard)) in fd_rasterizer_state_bind()470 if (clip_plane_enable != get_safe(ctx->rasterizer, clip_plane_enable)) in fd_rasterizer_state_bind()