D1110: Flush Failure
A Flush call by a render target failed [resource]. Tags [tag1, tag2].
Placeholders
-
resource
-
The address of the render target.
-
tag1
-
The first tag value. See SetTags for more information.
-
tag2
-
The second tag value. See SetTags for more information.
Error Level | Warning |
Examples
Example 1: The following code shows that a draw call is in an invalid state. To avoid the warning message, use SetAntialiasMode to set D2D1_ANTIALIAS_MODE_ANTIALIASED before a FillOpacityMask call.
if(SUCCEEDED(hr))
{
hr = m_pRenderTarget->CreateBitmap(
D2D1::SizeU(1,1),
NULL,
0,
D2D1::BitmapProperties(D2D1::PixelFormat(
DXGI_FORMAT_A8_UNORM,
D2D1_ALPHA_MODE_PREMULTIPLIED
)),
&m_pBitmap
);
}
m_pRenderTarget->FillOpacityMask(
m_pBitmapMask,
m_pFernBitmapBrush,
D2D1_OPACITY_MASK_CONTENT_GRAPHICS,
&rcBrushRect
);
hr = m_pRenderTarget->Flush();
hr = m_pRenderTarget->EndDraw();
This example produces the following debug message:
D2D DEBUG WARNING - Flush call on render target failed [88990001]. Tags [0, 0].
Example 2: The following code shows that the Flush is called after the EndDraw call.
// Calling Flush after EndDraw generates a
// flush error message from the debug layer.
hr = m_pRenderTarget->EndDraw();
hr = m_pRenderTarget->Flush();
This example produces the following debug message:
DEBUG WARNING - A Flush call by a render target failed [88990001]. Tags [0, 0].
Possible Causes
The Flush call can fail for one of two reasons. It may fail because the method was called outside of the BeginDraw/EndDraw call, or it may fail because there was an error produced by one of the render target operations that have been processed since the last Flush call or EndDraw call. To fix the issue, the application should determine the cause of the error and take the appropriate action.
Fixes
There are many reasons that a Flush call might fail. The application should determine the cause of the error and take the appropriate action.