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/swrast/s_texrender.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/swrast/s_texrender.c')
-rw-r--r-- | src/mesa/swrast/s_texrender.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/swrast/s_texrender.c b/src/mesa/swrast/s_texrender.c index f56a0d5bc10..00b3ca55ac0 100644 --- a/src/mesa/swrast/s_texrender.c +++ b/src/mesa/swrast/s_texrender.c @@ -50,11 +50,6 @@ update_wrapper(struct gl_context *ctx, struct gl_renderbuffer_attachment *att) zOffset = att->Zoffset; } - rb->Width = swImage->Base.Width; - rb->Height = swImage->Base.Height; - rb->InternalFormat = swImage->Base.InternalFormat; - rb->_BaseFormat = _mesa_get_format_base_format(format); - /* Want to store linear values, not sRGB */ rb->Format = _mesa_get_srgb_format_linear(format); |