diff options
author | Timothy Arceri <[email protected]> | 2017-05-08 10:59:15 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-11 13:53:39 +1000 |
commit | 20cabc2ac02a38cc08b313d74d6d6cee9c806555 (patch) | |
tree | 83d2417a0ed38bce051d6f99a6d98af6def6c225 /src/mesa/main/fbobject.c | |
parent | 304058a1fb209f25be65622202c1c21dcd6ceaf5 (diff) |
mesa: add no error version of framebuffer_texture_with_dims()
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 4759441becc..636cdd84707 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -3304,6 +3304,28 @@ _mesa_framebuffer_texture(struct gl_context *ctx, struct gl_framebuffer *fb, static void +framebuffer_texture_with_dims_no_error(GLenum target, GLenum attachment, + GLenum textarget, GLuint texture, + GLint level, GLint layer) +{ + GET_CURRENT_CONTEXT(ctx); + + /* Get the framebuffer object */ + struct gl_framebuffer *fb = get_framebuffer_target(ctx, target); + + /* Get the texture object */ + struct gl_texture_object *texObj = + get_texture_for_framebuffer(ctx, texture); + + struct gl_renderbuffer_attachment *att = + get_attachment(ctx, fb, attachment, NULL); + + _mesa_framebuffer_texture(ctx, fb, attachment, att, texObj, textarget, + level, layer, GL_FALSE); +} + + +static void framebuffer_texture_with_dims(int dims, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer, |