projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0553f6
)
swrast: always call _swrast_choose_texture_sample_func()
author
Brian Paul
<brianp@vmware.com>
Mon, 26 Sep 2011 20:39:52 +0000
(14:39 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_context.c
b/src/mesa/swrast/s_context.c
index 0c33dff125410c1aff17d2b7048327a346347092..a4acac233360eb03bb61fd1d494d9a2a5792336d 100644
(file)
--- a/
src/mesa/swrast/s_context.c
+++ b/
src/mesa/swrast/s_context.c
@@
-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);
}
}