mesa: add KHR_no_error support for glIs{Image,Texture}HandleResidentARB()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset
2017-06-14 11:27:40 +02:00
parent 6ff6863c32
commit d7bee4a022
3 changed files with 23 additions and 2 deletions

View File

@@ -869,6 +869,13 @@ _mesa_MakeImageHandleNonResidentARB(GLuint64 handle)
make_image_handle_resident(ctx, imgHandleObj, GL_READ_ONLY, false);
}
GLboolean GLAPIENTRY
_mesa_IsTextureHandleResidentARB_no_error(GLuint64 handle)
{
GET_CURRENT_CONTEXT(ctx);
return is_texture_handle_resident(ctx, handle);
}
GLboolean GLAPIENTRY
_mesa_IsTextureHandleResidentARB(GLuint64 handle)
{
@@ -895,6 +902,13 @@ _mesa_IsTextureHandleResidentARB(GLuint64 handle)
return is_texture_handle_resident(ctx, handle);
}
GLboolean GLAPIENTRY
_mesa_IsImageHandleResidentARB_no_error(GLuint64 handle)
{
GET_CURRENT_CONTEXT(ctx);
return is_image_handle_resident(ctx, handle);
}
GLboolean GLAPIENTRY
_mesa_IsImageHandleResidentARB(GLuint64 handle)
{