Mesa (master): swrast: remove an unused-but-set variable
Marek Olšák
mareko at kemper.freedesktop.org
Fri Jul 15 19:48:46 UTC 2011
Module: Mesa
Branch: master
Commit: 3032d064fb01d29bc4511362274a02a71e33c91f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3032d064fb01d29bc4511362274a02a71e33c91f
Author: Marek Olšák <maraeo at gmail.com>
Date: Fri Jul 15 20:06:01 2011 +0200
swrast: remove an unused-but-set variable
---
src/mesa/swrast/s_span.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index f81de3c..db102ac 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -961,17 +961,6 @@ convert_color_type(SWspan *span, GLenum newType, GLuint output)
static INLINE void
shade_texture_span(struct gl_context *ctx, SWspan *span)
{
- GLbitfield inputsRead;
-
- /* Determine which fragment attributes are actually needed */
- if (ctx->FragmentProgram._Current) {
- inputsRead = ctx->FragmentProgram._Current->Base.InputsRead;
- }
- else {
- /* XXX we could be a bit smarter about this */
- inputsRead = ~0;
- }
-
if (ctx->FragmentProgram._Current ||
ctx->ATIFragmentShader._Enabled) {
/* programmable shading */
More information about the mesa-commit
mailing list