summaryrefslogtreecommitdiff
path: root/src/mesa/vbo/vbo_context.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-21 09:50:55 -0600
committerBrian Paul <brianp@vmware.com>2009-05-21 16:10:45 -0600
commita1f6f82e829d14a9b730f1761ebfc11b4409cb51 (patch)
tree85150b600cf18a24060c82675d77bf89ea111de8 /src/mesa/vbo/vbo_context.h
parentbd0861e2742c22e4bce83bce40dfdbfd713835df (diff)
vbo: move vp_mode enum to vbo_exec.h, use enum instead of GLuint
Diffstat (limited to 'src/mesa/vbo/vbo_context.h')
-rw-r--r--src/mesa/vbo/vbo_context.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/vbo/vbo_context.h b/src/mesa/vbo/vbo_context.h
index bf405eb693..1d5e929e84 100644
--- a/src/mesa/vbo/vbo_context.h
+++ b/src/mesa/vbo/vbo_context.h
@@ -92,13 +92,13 @@ static INLINE struct vbo_context *vbo_context(GLcontext *ctx)
return (struct vbo_context *)(ctx->swtnl_im);
}
-enum {
- VP_NONE = 1,
- VP_NV,
- VP_ARB
-};
-static INLINE GLuint get_program_mode( GLcontext *ctx )
+/**
+ * Return VP_x token to indicate whether we're running fixed-function
+ * vertex transformation, an NV vertex program or ARB vertex program/shader.
+ */
+static INLINE enum vp_mode
+get_program_mode( GLcontext *ctx )
{
if (!ctx->VertexProgram._Current)
return VP_NONE;