From: Samuel Pitoiset Date: Mon, 26 Jun 2017 12:16:41 +0000 (+0200) Subject: mesa: add KHR_no_error support for glCheckFramebufferStatus() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78d3510f0c13a67a674e350e2b423b0b294a8b73;p=mesa.git mesa: add KHR_no_error support for glCheckFramebufferStatus() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_framebuffer_object.xml b/src/mapi/glapi/gen/ARB_framebuffer_object.xml index eda9fde8cd9..b8fff926207 100644 --- a/src/mapi/glapi/gen/ARB_framebuffer_object.xml +++ b/src/mapi/glapi/gen/ARB_framebuffer_object.xml @@ -212,7 +212,7 @@ - + diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 88449380229..7c92df56080 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2848,6 +2848,16 @@ _mesa_check_framebuffer_status(struct gl_context *ctx, } +GLenum GLAPIENTRY +_mesa_CheckFramebufferStatus_no_error(GLenum target) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_framebuffer *fb = get_framebuffer_target(ctx, target); + return _mesa_check_framebuffer_status(ctx, fb); +} + + GLenum GLAPIENTRY _mesa_CheckFramebufferStatus(GLenum target) { diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index 57e3959dad1..6e10c187427 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -215,6 +215,9 @@ _mesa_GenFramebuffers(GLsizei n, GLuint *framebuffers); extern void GLAPIENTRY _mesa_CreateFramebuffers(GLsizei n, GLuint *framebuffers); +GLenum GLAPIENTRY +_mesa_CheckFramebufferStatus_no_error(GLenum target); + extern GLenum GLAPIENTRY _mesa_CheckFramebufferStatus(GLenum target);