From: Dave Airlie Date: Thu, 5 Mar 2009 18:47:45 +0000 (+1000) Subject: r200: remove depth check for dri2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a03a4dd524b97f43356b830c21df05f82795fe0b;p=mesa.git r200: remove depth check for dri2 --- diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index 096ebad028c..f7149c36e20 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -676,14 +676,11 @@ void r200InitState( r200ContextPtr rmesa ) rmesa->radeon.state.stencil.clear = 0x00000000; break; case 24: + default: rmesa->radeon.state.depth.clear = 0x00ffffff; rmesa->radeon.state.depth.scale = 1.0 / (GLfloat)0xffffff; rmesa->radeon.state.stencil.clear = 0xffff0000; break; - default: - fprintf( stderr, "Error: Unsupported depth %d... exiting\n", - ctx->Visual.depthBits ); - exit( -1 ); } /* Only have hw stencil when depth buffer is 24 bits deep */