mesa: EXT_texture_sRGB_decode little fixup
authorMarek Olšák <maraeo@gmail.com>
Thu, 12 May 2011 23:15:53 +0000 (01:15 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 12 May 2011 23:43:28 +0000 (01:43 +0200)
It doesn't fix bug 37150 though.

src/mesa/main/samplerobj.c
src/mesa/main/texobj.c

index 229267f8c94b9c8a6c9a7bfaa78253998d4f0e85..f7774fdd7cb48e062b8bd4d8a4a16f74f96fa1a7 100644 (file)
@@ -132,7 +132,7 @@ _mesa_init_sampler_object(struct gl_sampler_object *sampObj, GLuint name)
    sampObj->CompareMode = GL_NONE;
    sampObj->CompareFunc = GL_LEQUAL;
    sampObj->CompareFailValue = 0.0;
-   sampObj->sRGBDecode = GL_FALSE;
+   sampObj->sRGBDecode = GL_DECODE_EXT;
    sampObj->CubeMapSeamless = GL_FALSE;
    sampObj->DepthMode = 0;
 }
index f2d214f931b5955f7fafee4b5169edf32200c220..fdf12817c9a12f5cd3acb791737cec90f5de9cd9 100644 (file)
@@ -254,6 +254,7 @@ _mesa_copy_texture_object( struct gl_texture_object *dest,
    dest->Sampler.CompareFailValue = src->Sampler.CompareFailValue;
    dest->Sampler.CubeMapSeamless = src->Sampler.CubeMapSeamless;
    dest->Sampler.DepthMode = src->Sampler.DepthMode;
+   dest->Sampler.sRGBDecode = src->Sampler.sRGBDecode;
    dest->_MaxLevel = src->_MaxLevel;
    dest->_MaxLambda = src->_MaxLambda;
    dest->GenerateMipmap = src->GenerateMipmap;