mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
mesa: initialize gl_renderbuffer::Depth in core
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
46cf80fb36
commit
a3969aa125
3 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue