mesa: add KHR_no_error support for glCheckFramebufferStatus()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
<glx vendorpriv="1426" always_array="true"/>
|
||||
</function>
|
||||
|
||||
<function name="CheckFramebufferStatus" es2="2.0">
|
||||
<function name="CheckFramebufferStatus" es2="2.0" no_error="true">
|
||||
<param name="target" type="GLenum"/>
|
||||
<return type="GLenum"/>
|
||||
<glx vendorpriv="1427"/>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user