mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 00:10:40 +02:00
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>
This commit is contained in:
parent
4daee6733f
commit
c7a81dcea9
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue