[Mesa-dev] [PATCH 13/15] mesa/sso: Implement _mesa_CreateShaderProgramv

Ian Romanick idr at freedesktop.org
Fri Feb 7 22:00:23 PST 2014


From: Gregory Hainaut <gregory.hainaut at gmail.com>

This was originally included in another patch, but it was split out by
Ian Romanick.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/main/shaderapi.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index c826561..22d50cd 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1922,10 +1922,15 @@ _mesa_CreateShaderProgramEXT(GLenum type, const GLchar *string)
 
 /**
  * ARB_separate_shader_objects: Compile & Link Program
+ *
+ * Basically the same as _mesa_CreateShaderProgramEXT but with support of
+ * multiple strings and sets the SeparateShader flag to true.
  */
 GLuint GLAPIENTRY
 _mesa_CreateShaderProgramv(GLenum type, GLsizei count,
                            const GLchar* const *strings)
 {
-   return 0;
+   GET_CURRENT_CONTEXT(ctx);
+
+   return _mesa_create_shader_program(ctx, GL_TRUE, type, count, strings);
 }
-- 
1.8.1.4



More information about the mesa-dev mailing list