projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b889f
)
mesa/srgb: handle SARGB8 case in the sw fbo renderer.
author
Dave Airlie
<airlied@gmail.com>
Thu, 13 Jan 2011 06:49:32 +0000
(16:49 +1000)
committer
Dave Airlie
<airlied@gmail.com>
Thu, 13 Jan 2011 06:51:30 +0000
(16:51 +1000)
src/mesa/main/texrender.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texrender.c
b/src/mesa/main/texrender.c
index d4def2e0fbe5b9edec53d1f94c9cf39a8a675fce..968f9f139c550d56c2b8842dcbff9f5b7b9c9aad 100644
(file)
--- 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;