diff options
author | Eric Anholt <[email protected]> | 2013-04-22 11:04:21 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-05-06 14:34:14 -0700 |
commit | 77a405dba7f70f8a47655e90774a5ecf5c88a6ed (patch) | |
tree | 0d0144210074d3ccfbe397ee3bb97f8afc77a391 /src/mesa/drivers/dri/intel/intel_fbo.c | |
parent | 5b190d19d326369a5c43fbdd1f19d9c8d112da40 (diff) |
mesa: Make Mesa core set up wrapped texture renderbuffer state.
Everyone was doing effectively the same thing, except for some funky code
reuse in Intel, and swrast mistakenly recomputing _BaseFormat instead of
using the texture's _BaseFormat. swrast's sRGB handling is left in place,
though it should be done by using _mesa_get_render_format() at render time
instead (as-is, it will miss updates to GL_FRAMEBUFFER_SRGB).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_fbo.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index 241695f3db6..6ab2803f1d6 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -489,12 +489,6 @@ intel_renderbuffer_update_wrapper(struct intel_context *intel, struct intel_mipmap_tree *mt = intel_image->mt; int level = image->Level; - rb->Format = image->TexFormat; - rb->InternalFormat = image->InternalFormat; - rb->_BaseFormat = image->_BaseFormat; - rb->NumSamples = mt->num_samples; - rb->Width = image->Width2; - rb->Height = image->Height2; rb->Delete = intel_delete_renderbuffer; rb->AllocStorage = intel_nop_alloc_storage; |