From: Chad Versace Date: Tue, 10 Jul 2012 00:01:29 +0000 (-0700) Subject: intel: Use consistent pattern in intelCreateBuffer X-Git-Tag: accepted/2.0alpha-wayland/20121114.171706~860 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c94f6bbd80908fd2cae8e27fe78c429e54a78b8;p=profile%2Fivi%2Fmesa.git intel: Use consistent pattern in intelCreateBuffer The 16-bit depth case did not follow the function's prevalent pattern. Reviewed-by: Paul Berry Signed-off-by: Chad Versace --- diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 31497bc..90f1778 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -602,10 +602,8 @@ intelCreateBuffer(__DRIscreen * driScrnPriv, } else if (mesaVis->depthBits == 16) { assert(mesaVis->stencilBits == 0); - /* just 16-bit depth buffer, no hw stencil */ - struct intel_renderbuffer *depthRb - = intel_create_private_renderbuffer(MESA_FORMAT_Z16); - _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &depthRb->Base.Base); + rb = intel_create_private_renderbuffer(MESA_FORMAT_Z16); + _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &rb->Base.Base); } else { assert(mesaVis->depthBits == 0);