mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
mesa: add KHR_no_error support to glNamedFramebufferDrawBuffer()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
0238976665
commit
8bf786d13d
3 changed files with 20 additions and 1 deletions
|
|
@ -186,7 +186,7 @@
|
||||||
<param name="layer" type="GLint" />
|
<param name="layer" type="GLint" />
|
||||||
</function>
|
</function>
|
||||||
|
|
||||||
<function name="NamedFramebufferDrawBuffer">
|
<function name="NamedFramebufferDrawBuffer" no_error="true">
|
||||||
<param name="framebuffer" type="GLuint" />
|
<param name="framebuffer" type="GLuint" />
|
||||||
<param name="buf" type="GLenum" />
|
<param name="buf" type="GLenum" />
|
||||||
</function>
|
</function>
|
||||||
|
|
|
||||||
|
|
@ -343,6 +343,22 @@ _mesa_DrawBuffer(GLenum buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GLAPIENTRY
|
||||||
|
_mesa_NamedFramebufferDrawBuffer_no_error(GLuint framebuffer, GLenum buf)
|
||||||
|
{
|
||||||
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
|
struct gl_framebuffer *fb;
|
||||||
|
|
||||||
|
if (framebuffer) {
|
||||||
|
fb = _mesa_lookup_framebuffer(ctx, framebuffer);
|
||||||
|
} else {
|
||||||
|
fb = ctx->WinSysDrawBuffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
draw_buffer_no_error(ctx, fb, buf, "glNamedFramebufferDrawBuffer");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void GLAPIENTRY
|
void GLAPIENTRY
|
||||||
_mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf)
|
_mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ _mesa_DrawBuffer_no_error(GLenum mode);
|
||||||
extern void GLAPIENTRY
|
extern void GLAPIENTRY
|
||||||
_mesa_DrawBuffer( GLenum mode );
|
_mesa_DrawBuffer( GLenum mode );
|
||||||
|
|
||||||
|
void GLAPIENTRY
|
||||||
|
_mesa_NamedFramebufferDrawBuffer_no_error(GLuint framebuffer, GLenum buf);
|
||||||
|
|
||||||
extern void GLAPIENTRY
|
extern void GLAPIENTRY
|
||||||
_mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);
|
_mesa_NamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue