From 07bb9884a5decd19119d9474af06c0d7ddc726b5 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 25 Jun 2002 08:44:27 +0000 Subject: FRONT_AND_BACK culling --- src/mesa/drivers/osmesa/osmesa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/osmesa') diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 5675171b96..d5c37c3e00 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.82 2002/06/15 03:03:10 brianp Exp $ */ +/* $Id: osmesa.c,v 1.83 2002/06/25 08:44:56 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -1960,6 +1960,9 @@ osmesa_choose_triangle_function( GLcontext *ctx ) if (osmesa->format != OSMESA_RGBA && osmesa->format != OSMESA_BGRA && osmesa->format != OSMESA_ARGB) return (swrast_tri_func) NULL; + if (ctx->Polygon.CullFlag && + ctx->Polygon.CullFaceMode == GL_FRONT_AND_BACK)) + return (swrast_tri_func) NULL; if (swrast->_RasterMask == DEPTH_BIT && ctx->Depth.Func == GL_LESS && -- cgit v1.2.3