summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-04 14:06:57 +1000
committerTimothy Arceri <[email protected]>2017-05-07 15:29:33 +1000
commit123b113f957af15eeedfdf959bc77dd363106aef (patch)
tree21ae7d26cc6c4b1a461019a8537d7a9bd3fa5526 /src
parent681647eca8dadf00c129cd7066b98f0a876873de (diff)
mesa: make _mesa_buffer_storage() static
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/bufferobj.c15
-rw-r--r--src/mesa/main/bufferobj.h5
2 files changed, 7 insertions, 13 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 0a8f030d25c..61612712ad7 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -1505,10 +1505,10 @@ _mesa_IsBuffer(GLuint id)
}
-void
-_mesa_buffer_storage(struct gl_context *ctx, struct gl_buffer_object *bufObj,
- GLenum target, GLsizeiptr size, const GLvoid *data,
- GLbitfield flags, const char *func)
+static void
+buffer_storage(struct gl_context *ctx, struct gl_buffer_object *bufObj,
+ GLenum target, GLsizeiptr size, const GLvoid *data,
+ GLbitfield flags, const char *func)
{
if (size <= 0) {
_mesa_error(ctx, GL_INVALID_VALUE, "%s(size <= 0)", func);
@@ -1596,8 +1596,7 @@ _mesa_BufferStorage(GLenum target, GLsizeiptr size, const GLvoid *data,
if (!bufObj)
return;
- _mesa_buffer_storage(ctx, bufObj, target, size, data, flags,
- "glBufferStorage");
+ buffer_storage(ctx, bufObj, target, size, data, flags, "glBufferStorage");
}
void GLAPIENTRY
@@ -1615,8 +1614,8 @@ _mesa_NamedBufferStorage(GLuint buffer, GLsizeiptr size, const GLvoid *data,
* In direct state access, buffer objects have an unspecified target since
* they are not required to be bound.
*/
- _mesa_buffer_storage(ctx, bufObj, GL_NONE, size, data, flags,
- "glNamedBufferStorage");
+ buffer_storage(ctx, bufObj, GL_NONE, size, data, flags,
+ "glNamedBufferStorage");
}
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index fefb01311bc..93a360dcb63 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -133,11 +133,6 @@ extern void
_mesa_init_buffer_object_functions(struct dd_function_table *driver);
extern void
-_mesa_buffer_storage(struct gl_context *ctx, struct gl_buffer_object *bufObj,
- GLenum target, GLsizeiptr size, const GLvoid *data,
- GLbitfield flags, const char *func);
-
-extern void
_mesa_buffer_data(struct gl_context *ctx, struct gl_buffer_object *bufObj,
GLenum target, GLsizeiptr size, const GLvoid *data,
GLenum usage, const char *func);