openframeworks/openFrameworks — Issue #1019: ofFbo needs consideration as far as MRT + MSAA
Author: kpasko
Created: 2012-03-01 19:42:09+00:00
State: open

currently if MSAA is enabled, COLOR_ATTACHMENT[ 0 -> nSamples]_EXT are bound for MS blitting, which could overwrite your texture color attachments without notifying you [ i.e. setSamples(4); setNumTextures(4) ]. There may be some solution where numSamples*numTextures = maxAttachments, allowing for multisampled internal textures, but at the very least we should warn/notify that samples and textures won't play so nicely together, or try to allocate samples/textures in the remaining attachments and notify on overflow.