]> git.tdb.fi Git - libs/gl.git/commit
Set all color attachments of a Framebuffer as draw buffers
authorMikko Rasa <tdb@tdb.fi>
Tue, 11 Sep 2012 20:29:22 +0000 (23:29 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 11 Sep 2012 20:29:22 +0000 (23:29 +0300)
commite1df3aa732d4d2d03f6ac72a8dead099937a0468
tree4d7628d6a354661db9f31497997ec1f849a76ff1
parent131bec9b254f5ba50dcaf7e6192baab9e9ccba6f
Set all color attachments of a Framebuffer as draw buffers

Indexing gl_FragData selects from the active draw buffers, so this is
required for multiple fragment shader outputs.
source/arb_draw_buffers.cpp [new file with mode: 0644]
source/arb_draw_buffers.h [new file with mode: 0644]
source/framebuffer.cpp