intel_fbo: set gl_renderbuffer Depth field
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 18 Apr 2013 21:18:09 +0000 (14:18 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 3 Jun 2013 03:38:37 +0000 (20:38 -0700)
Set the renderbuffer's Depth field to match the texture's
Depth when rendering to a texture.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_fbo.c

index 5a3732a1ac75c57575082784ad4b70cbe97ebe81..9f892a92eb9adae45d8aa68b2014f75e80737e4f 100644 (file)
@@ -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);