From 7af2c45947d47f72600bdf2b393faffa290f9cc7 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 2 Jun 2023 02:55:55 +0800 Subject: [PATCH] mapi: Fixes check_table.cpp for DrawArraysInstancedARB and DrawElementsInstancedARB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compile error when compiled with "-Dglx=xlib -D shared-glapi=disabled": check_table.cpp:1133:37: error: ‘struct _glapi_table’ has no member named ‘DrawArraysInstancedARB’; did you mean ‘DrawArraysInstanced’? 1133 | { "glDrawArraysInstancedARB", _O(DrawArraysInstancedARB) }, Fixes: 5679ef99b82 ("glapi: remove EXT and ARB suffixes from Draw functions") Reviewed-by: Eric Engestrom Signed-off-by: Yonggang Luo Part-of: --- src/mapi/glapi/tests/check_table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp index 596f43fc4b2..5b9d1e7c4a9 100644 --- a/src/mapi/glapi/tests/check_table.cpp +++ b/src/mapi/glapi/tests/check_table.cpp @@ -1130,8 +1130,8 @@ const struct name_offset known_dispatch[] = { { "glGetAttribLocation", _O(GetAttribLocation) }, { "glDrawBuffers", _O(DrawBuffers) }, { "glClampColor", _O(ClampColor) }, - { "glDrawArraysInstancedARB", _O(DrawArraysInstancedARB) }, - { "glDrawElementsInstancedARB", _O(DrawElementsInstancedARB) }, + { "glDrawArraysInstanced", _O(DrawArraysInstanced) }, + { "glDrawElementsInstanced", _O(DrawElementsInstanced) }, { "glRenderbufferStorageMultisample", _O(RenderbufferStorageMultisample) }, { "glFramebufferTexture", _O(FramebufferTexture) }, { "glProgramParameteri", _O(ProgramParameteri) },