From 64c64b332d6bdee6dce341c464e548286e601ec8 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 2 Aug 2007 16:05:59 +0300 Subject: [PATCH] Removed dead code.. --- src/mesa/vbo/vbo_context.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c index ad4556c..3e31673 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -137,11 +137,7 @@ static void init_mat_currval(GLcontext *ctx) break; } - if (i < MAT_ATTRIB_MAX) - cl->Ptr = (const void *)ctx->Light.Material.Attrib[i]; - else - cl->Ptr = (const void *)ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + i]; - + cl->Ptr = (const void *)ctx->Light.Material.Attrib[i]; cl->Type = GL_FLOAT; cl->Stride = 0; cl->StrideB = 0; -- 1.5.2.3