diff options
author | Samuel Pitoiset <[email protected]> | 2017-07-19 13:50:12 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-07-31 13:53:40 +0200 |
commit | a187fcf584c11e0af2f64798d0fb7dde51c23c2d (patch) | |
tree | a356f00efee5f3f90859337c561df37fb2bef06d /src/mesa/main/buffers.c | |
parent | 9337e4d38a5f057507690bfe11a6ba99a1ec81d3 (diff) |
mesa: add KHR_no_error support to glNamedFramebufferDrawBuffers()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 68500abf960..5c37f0f5376 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -623,6 +623,23 @@ _mesa_DrawBuffers(GLsizei n, const GLenum *buffers) void GLAPIENTRY +_mesa_NamedFramebufferDrawBuffers_no_error(GLuint framebuffer, GLsizei n, + const GLenum *bufs) +{ + GET_CURRENT_CONTEXT(ctx); + struct gl_framebuffer *fb; + + if (framebuffer) { + fb = _mesa_lookup_framebuffer(ctx, framebuffer); + } else { + fb = ctx->WinSysDrawBuffer; + } + + draw_buffers_no_error(ctx, fb, n, bufs, "glNamedFramebufferDrawBuffers"); +} + + +void GLAPIENTRY _mesa_NamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n, const GLenum *bufs) { |