From 2799d2535ab013ec82c79e3f98f92cdef43dbdf3 Mon Sep 17 00:00:00 2001 From: Jouk Jansen Date: Mon, 8 Dec 2003 08:58:52 +0000 Subject: Committing in . Solves array boundary out of bound which causes problems on OpenVMS (and maybe other systems) Modified Files: Mesa-newtree/src/mesa/tnl/t_vb_lighttmp.h Mesa-newtree/src/mesa/tnl/t_vtx_eval.c ---------------------------------------------------------------------- --- src/mesa/tnl/t_vb_lighttmp.h | 2 +- src/mesa/tnl/t_vtx_eval.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mesa/tnl/t_vb_lighttmp.h b/src/mesa/tnl/t_vb_lighttmp.h index 7af1a4bfabf..cd7988518b0 100644 --- a/src/mesa/tnl/t_vb_lighttmp.h +++ b/src/mesa/tnl/t_vb_lighttmp.h @@ -444,7 +444,7 @@ static void TAG(light_fast_rgba_single)( GLcontext *ctx, #endif const struct gl_light *light = ctx->Light.EnabledList.next; GLuint j = 0; - GLfloat base[2][3]; + GLfloat base[2][4]; const GLuint nr = VB->Count; #ifdef TRACE diff --git a/src/mesa/tnl/t_vtx_eval.c b/src/mesa/tnl/t_vtx_eval.c index 5b5cb624c9a..0878827cd97 100644 --- a/src/mesa/tnl/t_vtx_eval.c +++ b/src/mesa/tnl/t_vtx_eval.c @@ -210,7 +210,7 @@ void _tnl_do_EvalCoord2f( GLcontext* ctx, GLfloat u, GLfloat v ) ASSIGN_4V(vertex, 0, 0, 0, 1); if (ctx->Eval.AutoNormal) { - GLfloat normal[3]; + GLfloat normal[4]; GLfloat du[4], dv[4]; _math_de_casteljau_surf(map->Points, vertex, du, dv, uu, vv, -- cgit v1.2.3