mesa: make _mesa_unmap_buffer() static
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 4 May 2017 03:14:27 +0000 (13:14 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 7 May 2017 05:29:33 +0000 (15:29 +1000)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h

index d1726d68628b569ac113dacd95097bea51dc7be2..f6822c750dfbc844d20af4708f573ef34477b194 100644 (file)
@@ -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);
 {
    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;
 
    if (!bufObj)
       return GL_FALSE;
 
-   return _mesa_unmap_buffer(ctx, bufObj, "glUnmapBuffer");
+   return unmap_buffer(ctx, bufObj, "glUnmapBuffer");
 }
 
 GLboolean GLAPIENTRY
 }
 
 GLboolean GLAPIENTRY
@@ -2084,7 +2084,7 @@ _mesa_UnmapNamedBuffer(GLuint buffer)
    if (!bufObj)
       return GL_FALSE;
 
    if (!bufObj)
       return GL_FALSE;
 
-   return _mesa_unmap_buffer(ctx, bufObj, "glUnmapNamedBuffer");
+   return unmap_buffer(ctx, bufObj, "glUnmapNamedBuffer");
 }
 
 
 }
 
 
index f95e31ab107ae53f39cca0602cad02f7bd7f10d8..30e3105ff665ff856bdfd6de44b6ea48c4d30c1d 100644 (file)
@@ -180,10 +180,6 @@ _mesa_clear_buffer_sub_data(struct gl_context *ctx,
                             const GLvoid *data,
                             const char *func, bool subdata);
 
                             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
  */
 /*
  * API functions
  */