mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
mesa: add KHR_no_error support to glDrawBuffers()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
966108a803
commit
9337e4d38a
3 changed files with 20 additions and 1 deletions
|
|
@ -5267,7 +5267,7 @@
|
|||
<glx rop="4228"/>
|
||||
</function>
|
||||
|
||||
<function name="DrawBuffers" es2="3.0">
|
||||
<function name="DrawBuffers" es2="3.0" no_error="true">
|
||||
<param name="n" type="GLsizei" counter="true"/>
|
||||
<param name="bufs" type="const GLenum *" count="n"/>
|
||||
<glx rop="233" large="true"/>
|
||||
|
|
|
|||
|
|
@ -598,6 +598,22 @@ draw_buffers_error(struct gl_context *ctx, struct gl_framebuffer *fb, GLsizei n,
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
draw_buffers_no_error(struct gl_context *ctx, struct gl_framebuffer *fb,
|
||||
GLsizei n, const GLenum *buffers, const char *caller)
|
||||
{
|
||||
draw_buffers(ctx, fb, n, buffers, caller, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_DrawBuffers_no_error(GLsizei n, const GLenum *buffers)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
draw_buffers_no_error(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers");
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_DrawBuffers(GLsizei n, const GLenum *buffers)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,6 +52,9 @@ _mesa_NamedFramebufferDrawBuffer_no_error(GLuint framebuffer, GLenum buf);
|
|||
extern void GLAPIENTRY
|
||||
_mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_DrawBuffers_no_error(GLsizei n, const GLenum *buffers);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_DrawBuffers(GLsizei n, const GLenum *buffers);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue