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/state_tracker | |
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/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index affe6561b15..aa245d3fc0e 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -414,11 +414,6 @@ st_render_texture(struct gl_context *ctx, strb->rtt_level = att->TextureLevel; strb->rtt_face = att->CubeMapFace; strb->rtt_slice = att->Zoffset; - rb->NumSamples = texImage->NumSamples; - rb->Width = texImage->Width2; - rb->Height = texImage->Height2; - rb->_BaseFormat = texImage->_BaseFormat; - rb->InternalFormat = texImage->InternalFormat; pipe_resource_reference( &strb->texture, pt ); |