summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vb_fog.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-01-06 03:54:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-01-06 03:54:12 +0000
commit363049160da54f4aafe88f99bb2140a9bfed142b (patch)
treef189ec97cdd323e6e38958d9dc4b62c778c9868e /src/mesa/tnl/t_vb_fog.c
parente2053d16901732f4947c702cdc5ef72993d8d130 (diff)
Another vertex program checkpoint: clean-up of vertex attribute storage
in vertex_buffer. Improved vertex program pipeline stage such that output registers can be processed in a loop. Getting closer to where we need to be in order to implement performance optimizations...
Diffstat (limited to 'src/mesa/tnl/t_vb_fog.c')
-rw-r--r--src/mesa/tnl/t_vb_fog.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/tnl/t_vb_fog.c b/src/mesa/tnl/t_vb_fog.c
index b7876a4db9..d0e87cdbd8 100644
--- a/src/mesa/tnl/t_vb_fog.c
+++ b/src/mesa/tnl/t_vb_fog.c
@@ -1,10 +1,10 @@
-/* $Id: t_vb_fog.c,v 1.15 2002/01/05 20:51:13 brianp Exp $ */
+/* $Id: t_vb_fog.c,v 1.16 2002/01/06 03:54:12 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.5
+ * Version: 4.1
*
- * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2002 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"),
@@ -142,7 +142,7 @@ static GLboolean run_fog_stage( GLcontext *ctx,
/* fog computed from Z depth */
/* source = VB->ObjPtr or VB->EyePtr coords */
/* dest = VB->FogCoordPtr = fog stage private storage */
- VB->AttribPtr[VERT_ATTRIB_FOG] = &store->fogcoord;
+ VB->FogCoordPtr = &store->fogcoord;
if (!ctx->_NeedEyeCoords) {
const GLfloat *m = ctx->ModelviewMatrixStack.Top->m;
@@ -181,12 +181,12 @@ static GLboolean run_fog_stage( GLcontext *ctx,
else {
/* use glFogCoord() coordinates */
/* source = VB->FogCoordPtr */
- input = VB->AttribPtr[VERT_ATTRIB_FOG];
+ input = VB->FogCoordPtr;
/* dest = fog stage private storage */
- VB->AttribPtr[VERT_ATTRIB_FOG] = &store->fogcoord;
+ VB->FogCoordPtr = &store->fogcoord;
}
- make_win_fog_coords( ctx, VB->AttribPtr[VERT_ATTRIB_FOG], input );
+ make_win_fog_coords( ctx, VB->FogCoordPtr, input );
return GL_TRUE;
}