r200: remove depth check for dri2
authorDave Airlie <airlied@redhat.com>
Thu, 5 Mar 2009 18:47:45 +0000 (04:47 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 5 Mar 2009 18:48:20 +0000 (04:48 +1000)
src/mesa/drivers/dri/r200/r200_state_init.c

index 096ebad028c662cc5ab6204e2952827d92905e14..f7149c36e20da99c2247db4b622e3de6425e69d0 100644 (file)
@@ -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 */