diff options
author | Samuel Pitoiset <[email protected]> | 2017-05-23 23:45:49 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-05-29 10:11:43 +0200 |
commit | def908af6ce9c7ab39c768d7c5a85375c463869d (patch) | |
tree | 8a1b5f5201f6a226a2855bf994731107359d38e4 /src/mesa/main/shaderimage.c | |
parent | 3ca5da270449d1f5baa8325a401d3cd100de987a (diff) |
mesa: add KHR_no_error support for glBindImageTexture()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderimage.c')
-rw-r--r-- | src/mesa/main/shaderimage.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c index 19011d80b9e..494125346b4 100644 --- a/src/mesa/main/shaderimage.c +++ b/src/mesa/main/shaderimage.c @@ -602,6 +602,21 @@ bind_image_texture(struct gl_context *ctx, struct gl_texture_object *texObj, } void GLAPIENTRY +_mesa_BindImageTexture_no_error(GLuint unit, GLuint texture, GLint level, + GLboolean layered, GLint layer, GLenum access, + GLenum format) +{ + struct gl_texture_object *texObj = NULL; + + GET_CURRENT_CONTEXT(ctx); + + if (texture) + texObj = _mesa_lookup_texture(ctx, texture); + + bind_image_texture(ctx, texObj, unit, level, layered, layer, access, format); +} + +void GLAPIENTRY _mesa_BindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) |