summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-04 13:14:27 +1000
committerTimothy Arceri <[email protected]>2017-05-07 15:29:33 +1000
commit6c3768692e4edd7f61080239f34306be0d43bafd (patch)
treee05ef17cfb1bf0a2cbf1e94e6e385987623995bc /src
parent9d010f57dbb905c79a8916a2de3bc060a4099854 (diff)
mesa: make _mesa_unmap_buffer() static
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/bufferobj.c10
-rw-r--r--src/mesa/main/bufferobj.h4
2 files changed, 5 insertions, 9 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index d1726d68628..f6822c750df 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -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");
}
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index f95e31ab107..30e3105ff66 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -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
*/