mesa: initialize gl_renderbuffer::Depth in core
authorMarek Olšák <marek.olsak@amd.com>
Wed, 20 Nov 2013 00:47:36 +0000 (01:47 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 23 Nov 2013 00:54:57 +0000 (01:54 +0100)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/intel_fbo.c
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/main/fbobject.c

index f534386566024dc1197a9a568ca5dbb138a29857..36b22caa168fada9e33ab52d56314b388875372a 100644 (file)
@@ -420,8 +420,6 @@ 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);
index 472d2ca6f86fb489bafd880ccb9a845ef256999a..913621559a798a58044b160f7828a2790e086ada 100644 (file)
@@ -423,8 +423,6 @@ intel_renderbuffer_update_wrapper(struct brw_context *brw,
    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);
index 365062729328351e8fc67135020aea61f2a5f2c4..861885dd3f7c98d0673dde0bda9fed7fdfee38ac 100644 (file)
@@ -411,6 +411,7 @@ _mesa_update_texture_renderbuffer(struct gl_context *ctx,
    rb->InternalFormat = texImage->InternalFormat;
    rb->Width = texImage->Width2;
    rb->Height = texImage->Height2;
+   rb->Depth = texImage->Depth2;
    rb->NumSamples = texImage->NumSamples;
    rb->TexImage = texImage;