summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-05-16 11:09:23 -0600
committerBrian Paul <[email protected]>2012-05-19 08:28:56 -0600
commit1c333745f3dc1e0304295684a8e77af45fe2b40e (patch)
tree3d31d02c2e66d5227da71c06a8489f8db7507845 /src
parent315140969dd47de0817662f0ec50b6453fdb9ebe (diff)
mesa: add some comments on shaderapi.c functions
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/shaderapi.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index fd793a7abd2..3e03239b882 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -627,7 +627,8 @@ get_shader_source(struct gl_context *ctx, GLuint shader, GLsizei maxLength,
/**
- * Set/replace shader source code.
+ * Set/replace shader source code. A helper function used by
+ * glShaderSource[ARB] and glCreateShaderProgramEXT.
*/
static void
shader_source(struct gl_context *ctx, GLuint shader, const GLchar *source)
@@ -1534,6 +1535,10 @@ _mesa_use_shader_program(struct gl_context *ctx, GLenum type,
ctx->Driver.UseProgram(ctx, shProg);
}
+
+/**
+ * For GL_EXT_separate_shader_objects
+ */
void GLAPIENTRY
_mesa_UseShaderProgramEXT(GLenum type, GLuint program)
{
@@ -1570,6 +1575,10 @@ _mesa_UseShaderProgramEXT(GLenum type, GLuint program)
_mesa_use_shader_program(ctx, type, shProg);
}
+
+/**
+ * For GL_EXT_separate_shader_objects
+ */
void GLAPIENTRY
_mesa_ActiveProgramEXT(GLuint program)
{
@@ -1582,6 +1591,10 @@ _mesa_ActiveProgramEXT(GLuint program)
return;
}
+
+/**
+ * For GL_EXT_separate_shader_objects
+ */
GLuint GLAPIENTRY
_mesa_CreateShaderProgramEXT(GLenum type, const GLchar *string)
{