glamor: Drop a redundant check.
Above, we've already checked for ->fbo && ->fbo->fb and returned. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
47b868492c
commit
835067a409
|
@ -897,8 +897,7 @@ glamor_pixmap_upload_prepare(PixmapPtr pixmap, GLenum format, int no_alpha,
|
|||
}
|
||||
|
||||
if ((flag == GLAMOR_CREATE_FBO_NO_FBO
|
||||
&& pixmap_priv->fbo && pixmap_priv->fbo->tex)
|
||||
|| (flag == 0 && pixmap_priv->fbo && pixmap_priv->fbo->fb))
|
||||
&& pixmap_priv->fbo && pixmap_priv->fbo->tex))
|
||||
return 0;
|
||||
|
||||
if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)
|
||||
|
|
Loading…
Reference in New Issue
Block a user