buggins / dlangui

Cross Platform GUI for D programming language
Boost Software License 1.0
815 stars 121 forks source link

assert before cached drawbuf modification #556

Closed denizzzka closed 6 years ago

denizzzka commented 6 years ago

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.

denizzzka commented 6 years ago

It does not work, I changed my mind.