3

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?

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
AdyAdy
  • 988
  • 6
  • 19

1 Answers1

5

glDrawBuffer(s) sets framebuffer object state.

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982