I am faced with the fact that is after once usage of DrawBuf this buffer is cached and after that no matter how it changes: result of using this buffer is result of using of a previously cached buffer.
Every time replacing of this buffer after it changed seems not a very good idea in terms of performance. Therefore, I propose to change all changing GLDrawBuf functions by this way.
Do not merge this PR!
I am faced with the fact that is after once usage of DrawBuf this buffer is cached and after that no matter how it changes: result of using this buffer is result of using of a previously cached buffer.
Every time replacing of this buffer after it changed seems not a very good idea in terms of performance. Therefore, I propose to change all changing GLDrawBuf functions by this way.