From 77a405dba7f70f8a47655e90774a5ecf5c88a6ed Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 22 Apr 2013 11:04:21 -0700 Subject: 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 --- src/mesa/drivers/dri/intel/intel_fbo.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/mesa/drivers/dri/intel/intel_fbo.c') 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; -- cgit v1.2.3