summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-02-24 15:39:37 -0700
committerBrian <[email protected]>2007-02-24 15:39:37 -0700
commit5e80c62f3178a65bebca942aa0b1e5d16c34b2a9 (patch)
tree2ee01ff0a4b6221b6634f05301d12de7a2cb99e9 /src/mesa/main
parent197af3dc3242af4cac5213e095ac6639f6c782cd (diff)
Remove unneeded _Fragment/VertexShaderPresent fields, update comments.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/mtypes.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index b83beb8f91f..bd9198ef12f 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1929,9 +1929,11 @@ struct gl_vertex_program_state
GLboolean _Enabled; /**< Enabled and valid program? */
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 */
+ struct gl_vertex_program *Current; /**< user-bound vertex program */
- /** Currently enabled and valid program (including internal programs) */
+ /** Currently enabled and valid program (including internal programs
+ * and compiled shader programs).
+ */
struct gl_vertex_program *_Current;
GLfloat Parameters[MAX_PROGRAM_ENV_PARAMS][4]; /**< Env params */
@@ -1962,9 +1964,11 @@ struct gl_fragment_program_state
{
GLboolean Enabled; /**< User-set fragment program enable flag */
GLboolean _Enabled; /**< Fragment program enabled and valid? */
- struct gl_fragment_program *Current; /**< User-bound program */
+ struct gl_fragment_program *Current; /**< User-bound fragment program */
- /** Currently enabled and valid program (including internal programs) */
+ /** Currently enabled and valid program (including internal programs
+ * and compiled shader programs).
+ */
struct gl_fragment_program *_Current;
GLfloat Parameters[MAX_PROGRAM_ENV_PARAMS][4]; /**< Env params */
@@ -2099,9 +2103,7 @@ struct gl_shader_program
*/
struct gl_shader_state
{
- GLboolean _VertexShaderPresent;
- GLboolean _FragmentShaderPresent;
- struct gl_shader_program *CurrentProgram;
+ struct gl_shader_program *CurrentProgram; /**< The user-bound program */
};