When creating a multisample FBO, do all attached target textures need to be multisample-textures?
OpenGL multiple render target FBO with multisampling - requirements
257 views Asked by St0fF At
2
There are 2 answers
0
On
I think so.
§ 9.2.3.1 Multisample Queries
The values of
SAMPLE_BUFFERSandSAMPLEScontrol whether and how multisampling is performed (...).If a framebuffer object is not framebuffer complete (...), then the values of
SAMPLE_BUFFERSandSAMPLESare undefined.Otherwise, the value of
SAMPLESis equal to the value ofRENDERBUFFER_SAMPLESorTEXTURE_SAMPLES(depending on the type of the attached images), which must all have the same value.
(emphasis mine)
Section 9.4.2 Whole Framebuffer Completeness of the spec states:
So yes, the number of samples has to be the same for all attached textures and renderbuffers.