summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.h
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-01-14 14:52:01 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-03-17 10:18:34 -0700
commitf7f5df99542d6492fffd803d77d5f7d2f44d08c9 (patch)
treea1ff4688987ef609773ab944bc14aac4fc8a2c30 /src/mesa/main/bufferobj.h
parenta0cc03929e754692ae593df5072d144460434297 (diff)
downloadexternal_mesa3d-f7f5df99542d6492fffd803d77d5f7d2f44d08c9.zip
external_mesa3d-f7f5df99542d6492fffd803d77d5f7d2f44d08c9.tar.gz
external_mesa3d-f7f5df99542d6492fffd803d77d5f7d2f44d08c9.tar.bz2
main: Add entry point for UnmapNamedBuffer.
v2: review from Ian Romanick - Restore VBO_DEBUG and BOUNDS_CHECK - Remove _mesa from static software fallback unmap_buffer. Reviewed-by: Fredrik Höglund <fredrik@kde.org>
Diffstat (limited to 'src/mesa/main/bufferobj.h')
-rw-r--r--src/mesa/main/bufferobj.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h
index 6305b5c..40bd9fc 100644
--- a/src/mesa/main/bufferobj.h
+++ b/src/mesa/main/bufferobj.h
@@ -177,6 +177,10 @@ _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
*/
@@ -248,6 +252,9 @@ _mesa_ClearNamedBufferSubData(GLuint buffer, GLenum internalformat,
GLboolean GLAPIENTRY
_mesa_UnmapBuffer(GLenum target);
+GLboolean GLAPIENTRY
+_mesa_UnmapNamedBuffer(GLuint buffer);
+
void GLAPIENTRY
_mesa_GetBufferParameteriv(GLenum target, GLenum pname, GLint *params);