Skip to content

Fix calculation for partial gles2 pixel read

Simon Ser requested to merge github/fork/filips/master into master

Created by: filips

I believe there is a calculation error in the gles2_read_pixels() function, causing issue #1699 (closed) .

The calculation is OK for the first readout of the entire viewport, but once a partial area roughly below the middle of the viewport is changed, the data offset will make the glReadPixels() overflow the buffer, causing the seg fault and strange display behaviour discussed in the bug report.

Merge request reports