mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
swrast: Add a note about overlapping support for framebuffer blit.
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
657f3214e7
commit
b2469ff043
1 changed files with 9 additions and 1 deletions
|
|
@ -478,7 +478,15 @@ simple_blit(struct gl_context *ctx,
|
|||
ASSERT(srcX1 - srcX0 == dstX1 - dstX0);
|
||||
ASSERT(srcY1 - srcY0 == dstY1 - dstY0);
|
||||
|
||||
/* determine if copy should be bottom-to-top or top-to-bottom */
|
||||
/* From the GL_ARB_framebuffer_object spec:
|
||||
*
|
||||
* "If the source and destination buffers are identical, and the source
|
||||
* and destination rectangles overlap, the result of the blit operation
|
||||
* is undefined."
|
||||
*
|
||||
* However, we provide the expected result anyway by flipping the order of
|
||||
* the memcpy of rows.
|
||||
*/
|
||||
if (srcY0 > dstY0) {
|
||||
/* src above dst: copy bottom-to-top */
|
||||
yStep = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue