Closed kunaakos closed 8 years ago
duplicate of #28
the problem is, the gamma-correction is applied to the data-array that is most likely reused for rendering the next frame. Thus, if you don't write the whole data-array on every frame the initially set colors will fade to black over time (because the correction is applied over and over again).
I don't think render should be doing any of this stuff or at the very least there should be a "renderRaw" method that doesn't do any of these transformations.
If you do wish to do this, you should have your own buffer that is created at init time and used as the scratch space.
I agree. Wasn't the best Idea to have this in the core. Will be removed in the next version.
With the rewrite of the native part for version 0.6 this is now working properly, as the data passed by the application is not modified anymore.
I think this line should be:
Gamma correction is done in render()