]> git.tdb.fi Git - libs/gl.git/commitdiff
Refactor texture attachment management in Framebuffer
authorMikko Rasa <tdb@tdb.fi>
Wed, 21 Apr 2021 10:09:03 +0000 (13:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 21 Apr 2021 10:09:03 +0000 (13:09 +0300)
Duplicated code from the attach functions has been collapsed into a
helper function.

Attaching a texture does not need binding it, so there's little point
in deferring the allocation to update_attachment.  By calling the type-
specific allocate function in attach, update_attachment can be simpler.


No differences found