mesa: add KHR_no_error support for glCreateShader() and glCreateShaderObjectARB()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Jun 2017 10:21:05 +0000 (12:21 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Jun 2017 08:25:12 +0000 (10:25 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h

index 94589464c5c27a9119118463c503963902edaee9..415ed6a98bb243b20bf8d02a3c4376dd35893ea8 100644 (file)
         <glx ignore="true"/>
     </function>
 
-    <function name="CreateShader" es2="2.0">
+    <function name="CreateShader" es2="2.0" no_error="true">
         <param name="type" type="GLenum"/>
         <return type="GLuint"/>
         <glx ignore="true"/>
         <glx ignore="true"/>
     </function>
 
-    <function name="CreateShaderObjectARB">
+    <function name="CreateShaderObjectARB" no_error="true">
         <param name="shaderType" type="GLenum"/>
         <return type="GLhandleARB"/>
         <glx ignore="true"/>
index 839c7c1931124cb9de9bd6e00d94294f9374eb79..0e46a09e7db1a5d74f06ed3dea93e7e48e554928 100644 (file)
@@ -1395,6 +1395,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)
 {
@@ -1407,6 +1415,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)
 {
index 3f6c0ff0cbabe3e095e1336c96462aa7942e86b9..ccc38d9f75e71eb01c1a61bdaf93ea49252fbd10 100644 (file)
@@ -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);