diff options
author | Gregory Hainaut <[email protected]> | 2013-06-28 14:13:49 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-02-21 15:41:03 -0800 |
commit | e9ff3b9918b2e97ca7f46f5de8ed400bc2f7f7cb (patch) | |
tree | 2cd8af7bbaab49c107d3e1e539752eb9a4ef88fa /src/mesa/main/shaderapi.c | |
parent | 3659eade53848bcf76dec79170f2c3720fd02f7d (diff) |
mesa/sso: Implement _mesa_CreateShaderProgramv
This was originally included in another patch, but it was split out by
Ian Romanick.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index f981900f1b2..3dc073ff3f9 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1930,10 +1930,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); } |