mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
mesa: make _mesa_unmap_buffer() static
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
9d010f57db
commit
6c3768692e
2 changed files with 5 additions and 9 deletions
|
|
@ -2003,9 +2003,9 @@ _mesa_ClearNamedBufferSubData(GLuint buffer, GLenum internalformat,
|
|||
}
|
||||
|
||||
|
||||
GLboolean
|
||||
_mesa_unmap_buffer(struct gl_context *ctx, struct gl_buffer_object *bufObj,
|
||||
const char *func)
|
||||
static GLboolean
|
||||
unmap_buffer(struct gl_context *ctx, struct gl_buffer_object *bufObj,
|
||||
const char *func)
|
||||
{
|
||||
GLboolean status = GL_TRUE;
|
||||
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
|
||||
|
|
@ -2071,7 +2071,7 @@ _mesa_UnmapBuffer(GLenum target)
|
|||
if (!bufObj)
|
||||
return GL_FALSE;
|
||||
|
||||
return _mesa_unmap_buffer(ctx, bufObj, "glUnmapBuffer");
|
||||
return unmap_buffer(ctx, bufObj, "glUnmapBuffer");
|
||||
}
|
||||
|
||||
GLboolean GLAPIENTRY
|
||||
|
|
@ -2084,7 +2084,7 @@ _mesa_UnmapNamedBuffer(GLuint buffer)
|
|||
if (!bufObj)
|
||||
return GL_FALSE;
|
||||
|
||||
return _mesa_unmap_buffer(ctx, bufObj, "glUnmapNamedBuffer");
|
||||
return unmap_buffer(ctx, bufObj, "glUnmapNamedBuffer");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -180,10 +180,6 @@ _mesa_clear_buffer_sub_data(struct gl_context *ctx,
|
|||
const GLvoid *data,
|
||||
const char *func, bool subdata);
|
||||
|
||||
extern GLboolean
|
||||
_mesa_unmap_buffer(struct gl_context *ctx, struct gl_buffer_object *bufObj,
|
||||
const char *func);
|
||||
|
||||
/*
|
||||
* API functions
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue