From edc2dd8e4788e556d445c9f59974ed95b33c2bbc Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 13 Jan 2011 12:12:21 +1000 Subject: mesa/swrast: implement EXT_texture_sRGB_decode This implements the extension by choosing a different set of texture fetch functions when the texture parameter changes. Signed-off-by: Dave Airlie --- src/mesa/main/texobj.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/texobj.c') diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index f61e0237ad..5be881ec45 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -141,6 +141,7 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj, obj->Swizzle[2] = GL_BLUE; obj->Swizzle[3] = GL_ALPHA; obj->_Swizzle = SWIZZLE_NOOP; + obj->sRGBDecode = GL_DECODE_EXT; } -- cgit v1.2.3