summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-01-13 16:49:32 +1000
committerDave Airlie <[email protected]>2011-01-13 16:51:30 +1000
commit407184fe08ced99875c3abfac743a1d60857ccf2 (patch)
treed47afed0653682aea2f2f81fcffd48acadb91150 /src
parent71b889f904fcba4fbc5aafff4cb62a7201f38075 (diff)
mesa/srgb: handle SARGB8 case in the sw fbo renderer.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texrender.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c
index d4def2e0fbe..968f9f139c5 100644
--- a/src/mesa/main/texrender.c
+++ b/src/mesa/main/texrender.c
@@ -595,6 +595,10 @@ update_wrapper(struct gl_context *ctx, const struct gl_renderbuffer_attachment *
trb->Base.DataType = CHAN_TYPE;
trb->Base._BaseFormat = GL_RGBA;
break;
+ case MESA_FORMAT_SARGB8:
+ trb->Fetchf = _mesa_get_texel_fetch_func(MESA_FORMAT_ARGB8888, _mesa_get_texture_dimensions(att->Texture->Target));
+ trb->Base.DataType = CHAN_TYPE;
+ trb->Base._BaseFormat = GL_RGBA;
default:
trb->Base.DataType = CHAN_TYPE;
trb->Base._BaseFormat = GL_RGBA;