swrast: always call _swrast_choose_texture_sample_func()
authorBrian Paul <brianp@vmware.com>
Mon, 26 Sep 2011 20:39:52 +0000 (14:39 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 26 Sep 2011 20:43:56 +0000 (14:43 -0600)
_swrast_choose_texture_sample_func() handles null texture object pointers
and will return the "null" sampler function which returns (0,0,0,1).  This
fixes a minor regression from ce82914f5ad4bb9148370826099925590e9798fd

src/mesa/swrast/s_context.c

index 0c33dff125410c1aff17d2b7048327a346347092..a4acac233360eb03bb61fd1d494d9a2a5792336d 100644 (file)
@@ -476,8 +476,8 @@ _swrast_update_texture_samplers(struct gl_context *ctx)
        */
       if (tObj) {
          _mesa_update_fetch_functions(tObj);
-         swrast->TextureSample[u] = _swrast_choose_texture_sample_func(ctx, tObj);
       }
+      swrast->TextureSample[u] = _swrast_choose_texture_sample_func(ctx, tObj);
    }
 }