diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-26 12:42:25 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:12 +0200 |
commit | 7c02267673e553d75a1d13c69471b0b794239b9e (patch) | |
tree | 33b3c64fafdcfbaf92fe41ae96ed3fd3ba066635 /src/mesa/main/bufferobj.c | |
parent | 064bb7499cd3cb7a87c7f39c233ed2595889a503 (diff) |
mesa: add KHR_no_error support for gl*Buffers()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r-- | src/mesa/main/bufferobj.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 410aa7e4b5a..419972e3712 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -1479,6 +1479,14 @@ create_buffers_err(struct gl_context *ctx, GLsizei n, GLuint *buffers, bool dsa) * \param buffers Array of \c n locations to store the IDs. */ void GLAPIENTRY +_mesa_GenBuffers_no_error(GLsizei n, GLuint *buffers) +{ + GET_CURRENT_CONTEXT(ctx); + create_buffers(ctx, n, buffers, false); +} + + +void GLAPIENTRY _mesa_GenBuffers(GLsizei n, GLuint *buffers) { GET_CURRENT_CONTEXT(ctx); @@ -1492,6 +1500,14 @@ _mesa_GenBuffers(GLsizei n, GLuint *buffers) * \param buffers Array of \c n locations to store the IDs. */ void GLAPIENTRY +_mesa_CreateBuffers_no_error(GLsizei n, GLuint *buffers) +{ + GET_CURRENT_CONTEXT(ctx); + create_buffers(ctx, n, buffers, true); +} + + +void GLAPIENTRY _mesa_CreateBuffers(GLsizei n, GLuint *buffers) { GET_CURRENT_CONTEXT(ctx); |