diff options
author | Brian Paul <brianp@vmware.com> | 2009-03-11 19:23:01 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-03-11 19:23:01 -0600 |
commit | 590f6fe05030cb274067a9e58af9d8306d97d0b9 (patch) | |
tree | 13909cf154a941f9b30fcf17a3eeb92510523d93 /src/mesa/swrast | |
parent | 7d9cb242fdbb55f1486ec09b27709bedebfdb2c1 (diff) |
mesa: remove gl_texture_object::_Function field and associated code
It was only used in one place in swrast.
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_texfilter.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index 8d72018cf4..19317c393a 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -2830,7 +2830,9 @@ sample_depth_texture( GLcontext *ctx, /* XXXX if tObj->MinFilter != tObj->MagFilter, we're ignoring lambda */ - function = tObj->_Function; + function = (tObj->CompareMode == GL_COMPARE_R_TO_TEXTURE_ARB) ? + tObj->CompareFunc : GL_NONE; + if (tObj->MagFilter == GL_NEAREST) { GLuint i; for (i = 0; i < n; i++) { |