mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 05:40:33 +01:00
meta/copy_image: Stash off the scissor
The meta CopyImageSubData path uses BlitFramebuffers to do the actual copy.
The only thing that can affect BlitFramebuffers other than the currently
bound framebuffers is the scissor so we need to save that off and reset it.
If we don't do this, applications that use a scissor together with
CopyImageSubData will get accidentally scissored copies.
Tested-by: Markus Wick <markus at selfnet.de>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
(cherry picked from commit 736c6f3cfc)
This commit is contained in:
parent
99793e2541
commit
3ebf4afbf7
1 changed files with 2 additions and 2 deletions
|
|
@ -138,8 +138,8 @@ _mesa_meta_CopyImageSubData_uncompressed(struct gl_context *ctx,
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
/* We really only need to stash the bound framebuffers. */
|
||||
_mesa_meta_begin(ctx, 0);
|
||||
/* We really only need to stash the bound framebuffers and scissor. */
|
||||
_mesa_meta_begin(ctx, MESA_META_SCISSOR);
|
||||
|
||||
_mesa_GenFramebuffers(2, fbos);
|
||||
_mesa_BindFramebuffer(GL_READ_FRAMEBUFFER, fbos[0]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue