main: Split framebuffer_texture.
authorLaura Ekstrand <laura@jlekstrand.net>
Wed, 28 Jan 2015 00:11:52 +0000 (16:11 -0800)
committerFredrik Höglund <fredrik@kde.org>
Thu, 14 May 2015 13:48:12 +0000 (15:48 +0200)
commita245e3bdeb1cf38b56df4f208a7e20d0f0de6045
treeb622e93a12c5eef2d02778bde91b79d8d9730e62
parent69bdc9dcb8e5d3648e8d96029d5988b8971de8dc
main: Split framebuffer_texture.

Split apart utility function framebuffer_texture to better prepare for
implementing NamedFramebufferTexture and NamedFramebufferTextureLayer.  This
should also pave the way for some future cleanup work.

[Fredrik: - Mention which limit was exceeded when <layer> is out of range.
          - Update a comment to reflect that <fb> might not be the bound
            framebuffer.
          - Make it clear that the error message in glFramebufferTexture*D
            refers to the <textarget> parameter.
          - Remove EXT suffixes.]

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