diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/shaderapi.c | 16 | ||||
-rw-r--r-- | src/mesa/main/shaderapi.h | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 839c7c19311..0e46a09e7db 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -1396,6 +1396,14 @@ _mesa_CompileShader(GLuint shaderObj) GLuint GLAPIENTRY +_mesa_CreateShader_no_error(GLenum type) +{ + GET_CURRENT_CONTEXT(ctx); + return create_shader(ctx, type); +} + + +GLuint GLAPIENTRY _mesa_CreateShader(GLenum type) { GET_CURRENT_CONTEXT(ctx); @@ -1408,6 +1416,14 @@ _mesa_CreateShader(GLenum type) GLhandleARB GLAPIENTRY +_mesa_CreateShaderObjectARB_no_error(GLenum type) +{ + GET_CURRENT_CONTEXT(ctx); + return create_shader(ctx, type); +} + + +GLhandleARB GLAPIENTRY _mesa_CreateShaderObjectARB(GLenum type) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/shaderapi.h b/src/mesa/main/shaderapi.h index 3f6c0ff0cba..ccc38d9f75e 100644 --- a/src/mesa/main/shaderapi.h +++ b/src/mesa/main/shaderapi.h @@ -86,6 +86,9 @@ _mesa_CompileShader(GLuint); extern GLhandleARB GLAPIENTRY _mesa_CreateProgramObjectARB(void); +GLhandleARB GLAPIENTRY +_mesa_CreateShaderObjectARB_no_error(GLenum type); + extern GLhandleARB GLAPIENTRY _mesa_CreateShaderObjectARB(GLenum type); @@ -164,6 +167,9 @@ _mesa_AttachShader_no_error(GLuint program, GLuint shader); extern void GLAPIENTRY _mesa_AttachShader(GLuint program, GLuint shader); +GLuint GLAPIENTRY +_mesa_CreateShader_no_error(GLenum); + extern GLuint GLAPIENTRY _mesa_CreateShader(GLenum); |