summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/textureview.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-18 10:56:19 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commit2a4d5dce74ab7138a8e124a28a9eac69a9d96e5d (patch)
tree568fd856e76a4907b0f9454e3b4359bf92a18c97 /src/mesa/main/textureview.c
parent68c43ae8b2026acca482639292b3a673fb06ef6f (diff)
mesa: add KHR_no_error support to glTextureView()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/textureview.c')
-rw-r--r--src/mesa/main/textureview.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c
index 165af3c7469..89af068fae8 100644
--- a/src/mesa/main/textureview.c
+++ b/src/mesa/main/textureview.c
@@ -697,6 +697,24 @@ texture_view(struct gl_context *ctx, struct gl_texture_object *origTexObj,
}
void GLAPIENTRY
+_mesa_TextureView_no_error(GLuint texture, GLenum target, GLuint origtexture,
+ GLenum internalformat,
+ GLuint minlevel, GLuint numlevels,
+ GLuint minlayer, GLuint numlayers)
+{
+ struct gl_texture_object *texObj;
+ struct gl_texture_object *origTexObj;
+
+ GET_CURRENT_CONTEXT(ctx);
+
+ origTexObj = _mesa_lookup_texture(ctx, origtexture);
+ texObj = _mesa_lookup_texture(ctx, texture);
+
+ texture_view(ctx, origTexObj, texObj, target, internalformat, minlevel,
+ numlevels, minlayer, numlayers, true);
+}
+
+void GLAPIENTRY
_mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
GLenum internalformat,
GLuint minlevel, GLuint numlevels,