diff options
author | Brian Paul <brianp@vmware.com> | 2010-03-17 10:06:27 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-03-17 10:06:27 -0600 |
commit | 1bfc314596256b039df59f751d59dac82e3ceba1 (patch) | |
tree | 20846471c35be6d876ff647d624a9c49e10b91f8 /progs/samples/overlay.c | |
parent | c4922276831528ad2b25acf816ef3f3dfe3211b7 (diff) |
st/mesa: fix glCopyPixels bugs/crashes when src region need clipping
Use the _mesa_clip_readpixels() function to clip the src region against
the buffer's bounds. Neatly, the resulting pixel unpack object's
SkipPixels/SkipRows fields can be used to determine the position of the
region in the destination texture.
Fixes crash in progs/samples/copy.c and probably other cases.
Diffstat (limited to 'progs/samples/overlay.c')
0 files changed, 0 insertions, 0 deletions