main: Refactor get_texture_for_framebuffer.
authorLaura Ekstrand <laura@jlekstrand.net>
Mon, 2 Mar 2015 21:41:13 +0000 (13:41 -0800)
committerFredrik Höglund <fredrik@kde.org>
Thu, 14 May 2015 13:48:13 +0000 (15:48 +0200)
commita9f73f7f42081594d0ba9ff6cb7a0a743c3cad93
treeb1ba7b8487e3a81bfc729176aff89a8d01b3a2d9
parenta245e3bdeb1cf38b56df4f208a7e20d0f0de6045
main: Refactor get_texture_for_framebuffer.

This moves a few blocks around so that the control flow is more obvious.  If
the texture is 0, just return true at the beginning of the function.
Likewise, if the texObj is NULL, return true at the beginning of the function
as well.

[Fredrik: Fix the texObj NULL check]

Reviewed-by: Fredrik Höglund <fredrik@kde.org>
Signed-off-by: Fredrik Höglund <fredrik@kde.org>
src/mesa/main/fbobject.c