diff options
author | Brian Paul <brianp@vmware.com> | 2017-10-13 16:16:48 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2017-10-14 10:30:27 -0600 |
commit | c7a81dcea9a9c2a0a7e8a0cebe4fe1ff81c1deb9 (patch) | |
tree | 30c4eaecd6303d4ab14424c4425a1baa8f827844 /src | |
parent | 4daee6733f3c4c755f9450a0dea33c0203cacd68 (diff) |
mesa: minor simplification in test_attachment_completeness()
We already have a pointer to the texture object. Use it here.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/fbobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index db8c207ceea..71e91f9301f 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -855,8 +855,7 @@ test_attachment_completeness(const struct gl_context *ctx, GLenum format, * these textures to be used as a render target, this is done via * GL_EXT_color_buffer(_half)_float with set of new sized types. */ - if (_mesa_is_gles(ctx) && (texImage->TexObject->_IsFloat || - texImage->TexObject->_IsHalfFloat)) { + if (_mesa_is_gles(ctx) && (texObj->_IsFloat || texObj->_IsHalfFloat)) { att_incomplete("bad internal format"); att->Complete = GL_FALSE; return; |