summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-10-16 17:57:51 +0000
committerBrian Paul <[email protected]>2002-10-16 17:57:51 +0000
commit8dfc5b9863f08a713177fd92847573e17febbac9 (patch)
treeea828725e04950d4d7416067493135f6731f9f2e /src/mesa/main/state.c
parente32b9090541f0e8e44d10953017617621edb5635 (diff)
surround vertex program code with #if FEATURE_NV_vertex_program/#endif
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index a7414241a01..4df1afbc831 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.94 2002/10/08 23:59:33 brianp Exp $ */
+/* $Id: state.c,v 1.95 2002/10/16 17:57:52 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -69,7 +69,9 @@
#include "texstate.h"
#include "mtypes.h"
#include "varray.h"
+#if FEATURE_NV_vertex_program
#include "vpstate.h"
+#endif
#include "math/m_matrix.h"
#include "math/m_xform.h"
@@ -462,6 +464,7 @@ _mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize)
exec->WindowPos4svMESA = _mesa_WindowPos4svMESA;
/* 233. GL_NV_vertex_program */
+#if FEATURE_NV_vertex_program
exec->BindProgramNV = _mesa_BindProgramNV;
exec->DeleteProgramsNV = _mesa_DeleteProgramsNV;
exec->ExecuteProgramNV = _mesa_ExecuteProgramNV;
@@ -487,6 +490,7 @@ _mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize)
exec->ProgramParameters4fvNV = _mesa_ProgramParameters4fvNV;
exec->TrackMatrixNV = _mesa_TrackMatrixNV;
exec->VertexAttribPointerNV = _mesa_VertexAttribPointerNV;
+#endif
/* 262. GL_NV_point_sprite */
exec->PointParameteriNV = _mesa_PointParameteriNV;