From: Mikko Rasa Date: Wed, 21 Apr 2021 10:09:03 +0000 (+0300) Subject: Refactor texture attachment management in Framebuffer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=sidebyside;h=ccd636b2fa8b9f270fbe600629dd109e78d00992;hp=ccd636b2fa8b9f270fbe600629dd109e78d00992;p=libs%2Fgl.git Refactor texture attachment management in Framebuffer 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. ---