/* Override for the swrast tri-selection function. Try to use one * of our internal tri functions, otherwise fall back to the * standard swrast functions. */ void xmesa_choose_triangle( struct gl_context *ctx ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); if (!(swrast->Triangle = get_triangle_func( ctx ))) _swrast_choose_triangle( ctx ); }
/* Override for the swrast triangle-selection function. Try to use one * of our internal triangle functions, otherwise fall back to the * standard swrast functions. */ static void osmesa_choose_triangle( struct gl_context *ctx ) { SWcontext *swrast = SWRAST_CONTEXT(ctx); swrast->Triangle = osmesa_choose_triangle_function( ctx ); if (!swrast->Triangle) _swrast_choose_triangle( ctx ); }