Commit 413e5d7e authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Add check in cc-composite for the same image used twice.

parent 37dc70ff
......@@ -2169,6 +2169,14 @@ void icetCompressedCompressedComposite(const IceTSparseImage front_buffer,
const IceTSparseImage back_buffer,
IceTSparseImage dest_buffer)
{
if ( icetSparseImageEqual(front_buffer, back_buffer)
|| icetSparseImageEqual(front_buffer, dest_buffer)
|| icetSparseImageEqual(back_buffer, dest_buffer) ) {
icetRaiseError("Detected reused buffer in"
" compressed-compressed composite.",
ICET_SANITY_CHECK_FAIL);
}
icetTimingBlendBegin();
#define FRONT_SPARSE_IMAGE front_buffer
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment