mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
mesa: return early if mask is cleared to zero in BlitFramebuffer
From ARB_framebuffer_object:
If a buffer is specified in <mask> and does not exist in both the
read and draw framebuffers, the corresponding bit is silently
ignored.
(cherry picked from commit 83478e5d59)
This commit is contained in:
parent
e041956cb2
commit
7a75fcd657
1 changed files with 4 additions and 0 deletions
|
|
@ -2447,6 +2447,10 @@ _mesa_BlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mask) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ASSERT(ctx->Driver.BlitFramebuffer);
|
ASSERT(ctx->Driver.BlitFramebuffer);
|
||||||
ctx->Driver.BlitFramebuffer(ctx,
|
ctx->Driver.BlitFramebuffer(ctx,
|
||||||
srcX0, srcY0, srcX1, srcY1,
|
srcX0, srcY0, srcX1, srcY1,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue