diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2023-01-14 16:55:02 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-12 14:04:25 +0000 |
commit | 40dde59475bef1eaa7ac70786b700fb3549bb366 (patch) | |
tree | 36b6446b97b6a5d20c8befe6b4e3ef5fc987cf77 /include | |
parent | 9affcaa93ca1e5eab19a88741a6e2650ccf1c076 (diff) |
render/gles2: use byte-aligned rows for glReadPixels
Setting the GLESv2 parameter GL_PACK_ALIGNMENT to 1 ensures that the
stride of the glReadPixels output matches the value computed in
`pack_stride`. Since the default value of GL_PACK_ALIGNMENT is 4, this
does not make a difference under normal use; but without this patch
the stride can be incorrect; for example, with RGB565 buffers and
screenshots of regions with odd width.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions