diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-26 18:27:49 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:13 +0200 |
commit | b87a2cbec41e7fbf5514f0e6347eaa3ee1490f59 (patch) | |
tree | 7d8c89327b426ffb60068fc8e79b2ecf420f4628 /src/mesa | |
parent | beb74c9b87b90a4a10c9c4b26191d3d2ebd973d6 (diff) |
mesa: add KHR_no_error support for gl*Renderbuffers()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/fbobject.c | 16 | ||||
-rw-r--r-- | src/mesa/main/fbobject.h | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 4c312332079..88449380229 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1745,6 +1745,14 @@ create_render_buffers_err(struct gl_context *ctx, GLsizei n, void GLAPIENTRY +_mesa_GenRenderbuffers_no_error(GLsizei n, GLuint *renderbuffers) +{ + GET_CURRENT_CONTEXT(ctx); + create_render_buffers(ctx, n, renderbuffers, false); +} + + +void GLAPIENTRY _mesa_GenRenderbuffers(GLsizei n, GLuint *renderbuffers) { GET_CURRENT_CONTEXT(ctx); @@ -1753,6 +1761,14 @@ _mesa_GenRenderbuffers(GLsizei n, GLuint *renderbuffers) void GLAPIENTRY +_mesa_CreateRenderbuffers_no_error(GLsizei n, GLuint *renderbuffers) +{ + GET_CURRENT_CONTEXT(ctx); + create_render_buffers(ctx, n, renderbuffers, true); +} + + +void GLAPIENTRY _mesa_CreateRenderbuffers(GLsizei n, GLuint *renderbuffers) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index 1c9056dae7e..57e3959dad1 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -152,9 +152,15 @@ _mesa_BindRenderbufferEXT(GLenum target, GLuint renderbuffer); extern void GLAPIENTRY _mesa_DeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers); +void GLAPIENTRY +_mesa_GenRenderbuffers_no_error(GLsizei n, GLuint *renderbuffers); + extern void GLAPIENTRY _mesa_GenRenderbuffers(GLsizei n, GLuint *renderbuffers); +void GLAPIENTRY +_mesa_CreateRenderbuffers_no_error(GLsizei n, GLuint *renderbuffers); + extern void GLAPIENTRY _mesa_CreateRenderbuffers(GLsizei n, GLuint *renderbuffers); |