summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-03-16 18:55:54 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-03-16 18:55:54 +0000
commit58229720e9e63b3a6ef03fde20eb0216499f7eb9 (patch)
treecf164b245e39c1ebfc7ac8e1a33d52a63e22b274
parent2b46bc58ce870a5228965c5f243201c4fdf4ce42 (diff)
Remove const from program _Current pointers.
We do want to modify these objects in the drivers, especially when they are really pointing to a driver defined struct derived from the base program structures.
-rw-r--r--src/mesa/main/mtypes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index e8f0f45d39..b98b468d42 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1919,7 +1919,7 @@ struct gl_vertex_program_state
GLboolean PointSizeEnabled; /**< GL_VERTEX_PROGRAM_POINT_SIZE_ARB/NV */
GLboolean TwoSideEnabled; /**< GL_VERTEX_PROGRAM_TWO_SIDE_ARB/NV */
struct gl_vertex_program *Current; /**< ptr to currently bound program */
- const struct gl_vertex_program *_Current; /**< ptr to currently bound
+ struct gl_vertex_program *_Current; /**< ptr to currently bound
program, including internal
(t_vp_build.c) programs */
@@ -1947,7 +1947,7 @@ struct gl_fragment_program_state
GLboolean _Enabled; /**< Fragment program enabled and valid? */
GLboolean _Active; /**< Is a user program or internal program active? */
struct gl_fragment_program *Current; /**< User-bound program */
- const struct gl_fragment_program *_Current; /**< currently active program
+ struct gl_fragment_program *_Current; /**< currently active program
(including internal programs) */
GLfloat Parameters[MAX_NV_FRAGMENT_PROGRAM_PARAMS][4]; /**< Env params */