From: Jordan Justen Date: Thu, 18 Apr 2013 21:18:09 +0000 (-0700) Subject: intel_fbo: set gl_renderbuffer Depth field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8312caf6737d51df6048397befa49cae10b5604d;p=mesa.git intel_fbo: set gl_renderbuffer Depth field Set the renderbuffer's Depth field to match the texture's Depth when rendering to a texture. Signed-off-by: Jordan Justen Reviewed-by: Paul Berry Reviewed-by: Eric Anholt --- diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index 5a3732a1ac7..9f892a92eb9 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -494,6 +494,8 @@ intel_renderbuffer_update_wrapper(struct intel_context *intel, struct intel_mipmap_tree *mt = intel_image->mt; int level = image->Level; + rb->Depth = image->Depth; + rb->AllocStorage = intel_nop_alloc_storage; intel_miptree_check_level_layer(mt, level, layer);