summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2013-04-18 14:18:09 -0700
committerJordan Justen <[email protected]>2013-06-02 20:38:37 -0700
commit8312caf6737d51df6048397befa49cae10b5604d (patch)
treee1662056862ffd875d968806f85023cc62206643 /src
parenta2d31371e942ad4dd680be0918b540d78bffbbd1 (diff)
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 <[email protected]> Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel/intel_fbo.c2
1 files changed, 2 insertions, 0 deletions
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);