mesa/main: remove ARB suffix from glGetnTexImage
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 21 Nov 2018 19:09:46 +0000 (20:09 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 26 Nov 2018 11:29:54 +0000 (12:29 +0100)
This function has been core since OpenGL 4.3, so naming the
implementation and reporting erros using an ARB-suffix can be
confusing.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
src/mapi/glapi/gen/ARB_robustness.xml
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/texgetimage.c
src/mesa/main/texgetimage.h

index 1f6ac4696b6b2bfe751f4f5a6dccf0949a9f0d4c..47c417390dfb9d54147edf7462a8411c28707d0c 100644 (file)
@@ -73,7 +73,7 @@
         <param name="pattern" type="GLubyte *" output="true"/>
     </function>
 
-    <function name="GetnTexImageARB">
+    <function name="GetnTexImageARB" alias="GetnTexImage">
         <param name="target" type="GLenum"/>
         <param name="level" type="GLint"/>
         <param name="format" type="GLenum"/>
index 929e5f6b0240cf58bf950625caa909650b49b933..f4d0808f13b9da654d1597f0e74dff259e3bda73 100644 (file)
         <glx sop="135" dimensions_in_reply="true"/>
     </function>
 
+    <function name="GetnTexImage">
+        <param name="target" type="GLenum"/>
+        <param name="level" type="GLint"/>
+        <param name="format" type="GLenum"/>
+        <param name="type" type="GLenum"/>
+        <param name="bufSize" type="GLsizei"/>
+        <param name="img" type="GLvoid *" output="true"/>
+    </function>
+
     <function name="GetTexParameterfv" es1="1.1" es2="2.0">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
index 0ab9ed445d63172707c2841e2bc32a77b48701bc..2f44f94d37b73946dc4bf307d49dd73f3438bd19 100644 (file)
@@ -1380,11 +1380,11 @@ get_texture_image(struct gl_context *ctx,
 
 
 void GLAPIENTRY
-_mesa_GetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type,
-                      GLsizei bufSize, GLvoid *pixels)
+_mesa_GetnTexImage(GLenum target, GLint level, GLenum format, GLenum type,
+                   GLsizei bufSize, GLvoid *pixels)
 {
    GET_CURRENT_CONTEXT(ctx);
-   static const char *caller = "glGetnTexImageARB";
+   static const char *caller = "glGetnTexImage";
    GLsizei width, height, depth;
    struct gl_texture_object *texObj;
 
index 3928e7abb7b7b23ce1984bddf536bd7abb1e6136..9a5874300e7ce6a8839a4f9d65753b19269b5332 100644 (file)
@@ -56,8 +56,8 @@ extern void GLAPIENTRY
 _mesa_GetTexImage( GLenum target, GLint level,
                    GLenum format, GLenum type, GLvoid *pixels );
 extern void GLAPIENTRY
-_mesa_GetnTexImageARB( GLenum target, GLint level, GLenum format,
-                       GLenum type, GLsizei bufSize, GLvoid *pixels );
+_mesa_GetnTexImage(GLenum target, GLint level, GLenum format,
+                   GLenum type, GLsizei bufSize, GLvoid *pixels);
 extern void GLAPIENTRY
 _mesa_GetTextureImage(GLuint texture, GLint level, GLenum format,
                       GLenum type, GLsizei bufSize, GLvoid *pixels);