diff options
author | Timothy Arceri <[email protected]> | 2018-09-05 15:18:04 +1000 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-28 15:41:21 -0400 |
commit | 76e25edf6afc21e427d7e2e7e58457ed4194169e (patch) | |
tree | dc35f1f675a7e1c51fadee123c9f65bd90205396 /src/mesa/main | |
parent | b5f930ea05fd87500447982b8fd464044c417592 (diff) |
mesa: add support for glUnmapNamedBufferEXT()
Since the ARB DSA function glUnmapNamedBuffer() is only exposed
for 3.1 or above we make glUnmapNamedBuffer() an alias of
glUnmapNamedBufferEXT() rather than the other way around.
Reviewed-by: Marek Olšák <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/bufferobj.c | 4 | ||||
-rw-r--r-- | src/mesa/main/bufferobj.h | 4 | ||||
-rw-r--r-- | src/mesa/main/tests/dispatch_sanity.cpp | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index a751e41d6e8..cd4bd36810a 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -2688,7 +2688,7 @@ _mesa_UnmapBuffer(GLenum target) } GLboolean GLAPIENTRY -_mesa_UnmapNamedBuffer_no_error(GLuint buffer) +_mesa_UnmapNamedBufferEXT_no_error(GLuint buffer) { GET_CURRENT_CONTEXT(ctx); struct gl_buffer_object *bufObj = _mesa_lookup_bufferobj(ctx, buffer); @@ -2697,7 +2697,7 @@ _mesa_UnmapNamedBuffer_no_error(GLuint buffer) } GLboolean GLAPIENTRY -_mesa_UnmapNamedBuffer(GLuint buffer) +_mesa_UnmapNamedBufferEXT(GLuint buffer) { GET_CURRENT_CONTEXT(ctx); struct gl_buffer_object *bufObj; diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index c3b57ef7fe6..91df7e9c231 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -303,9 +303,9 @@ GLboolean GLAPIENTRY _mesa_UnmapBuffer(GLenum target); GLboolean GLAPIENTRY -_mesa_UnmapNamedBuffer_no_error(GLuint buffer); +_mesa_UnmapNamedBufferEXT_no_error(GLuint buffer); GLboolean GLAPIENTRY -_mesa_UnmapNamedBuffer(GLuint buffer); +_mesa_UnmapNamedBufferEXT(GLuint buffer); void GLAPIENTRY _mesa_GetBufferParameteriv(GLenum target, GLenum pname, GLint *params); diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp index 8cb63da17b2..b29dbdb7652 100644 --- a/src/mesa/main/tests/dispatch_sanity.cpp +++ b/src/mesa/main/tests/dispatch_sanity.cpp @@ -932,7 +932,6 @@ const struct function common_desktop_functions_possible[] = { { "glClearNamedBufferSubData", 45, -1 }, { "glMapNamedBuffer", 45, -1 }, { "glMapNamedBufferRange", 45, -1 }, - { "glUnmapNamedBuffer", 45, -1 }, { "glFlushMappedNamedBufferRange", 45, -1 }, { "glGetNamedBufferParameteriv", 45, -1 }, { "glGetNamedBufferParameteri64v", 45, -1 }, @@ -1129,7 +1128,7 @@ const struct function common_desktop_functions_possible[] = { { "glNamedBufferDataEXT", 15, -1 }, { "glNamedBufferSubDataEXT", 15, -1 }, //{ "glMapNamedBufferEXT", 15, -1 }, - //{ "glUnmapNamedBufferEXT", 15, -1 }, + { "glUnmapNamedBufferEXT", 15, -1 }, //{ "glGetNamedBufferParameterivEXT", 15, -1 }, //{ "glGetNamedBufferPointervEXT", 15, -1 }, //{ "glGetNamedBufferSubDataEXT", 15, -1 }, |