AdyAdy
AdyAdy

Reputation: 1028

OpenGL - Where is the state set by glDrawBuffers stored?

If I understand correctly, you can attach textures to an FBO and then use glDrawBuffers to link those attachment points to (fragment) shader output indices. Where is this latter state stored after a glDrawBuffers call? The currently bound shader, FBO, or is it a global OpenGL state?

Upvotes: 3

Views: 212

Answers (1)

Nicol Bolas
Nicol Bolas

Reputation: 473407

glDrawBuffer(s) sets framebuffer object state.

Upvotes: 5

Related Questions