X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Ftnl%2Ft_vb_texgen.c;h=64d569a0192a5df8400b55869987cc0860ad52e9;hb=6bbcae9473eb29b4621aaa344013ebf3bb59ccf5;hp=6ffc53d7e06326b5bda2c7af29e652e9084563d9;hpb=ae0eaf93e092ac8e8b1c98f3e986de96940663fa;p=mesa.git diff --git a/src/mesa/tnl/t_vb_texgen.c b/src/mesa/tnl/t_vb_texgen.c index 6ffc53d7e06..64d569a0192 100644 --- a/src/mesa/tnl/t_vb_texgen.c +++ b/src/mesa/tnl/t_vb_texgen.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.0 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -26,6 +26,14 @@ * Keith Whitwell */ +/* + * Regarding GL_NV_texgen_reflection: + * + * Portions of this software may use or implement intellectual + * property owned and licensed by NVIDIA Corporation. NVIDIA disclaims + * any and all warranties with respect to such intellectual property, + * including any use thereof or modifications thereto. + */ #include "glheader.h" #include "colormac.h" @@ -449,7 +457,7 @@ static void texgen( GLcontext *ctx, break; case GL_REFLECTION_MAP_NV: for (i=0;istart; @@ -524,7 +532,8 @@ static GLboolean run_texgen_stage( GLcontext *ctx, if (stage->changed_inputs & (_TNL_BIT_POS | _TNL_BIT_NORMAL | _TNL_BIT_TEX(i))) store->TexgenFunc[i]( ctx, store, i ); - VB->TexCoordPtr[i] = &store->texcoord[i]; + VB->AttribPtr[VERT_ATTRIB_TEX0+i] = + VB->TexCoordPtr[i] = &store->texcoord[i]; } return GL_TRUE; @@ -669,7 +678,7 @@ static void free_texgen_data( struct tnl_pipeline_stage *stage ) const struct tnl_pipeline_stage _tnl_texgen_stage = { "texgen", /* name */ - _NEW_TEXTURE, /* when to call check() */ + _NEW_TEXTURE|_NEW_PROGRAM, /* when to call check() */ _NEW_TEXTURE, /* when to invalidate stored data */ GL_FALSE, /* active? */ 0, /* inputs */