title | ms.assetid | description | keywords | topic_type | api_name | api_type | ms.topic | ms.date | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
D1153 Closed Command Lists Cannot Be Set As Targets |
6fe1da76-4332-4bf7-bbae-a38f694fc12b |
An attempt was made to set a closed command list on a target. |
|
|
|
|
reference |
05/31/2018 |
An attempt was made to set a closed command list on a target.
After a command list has been closed, an application should not attempt to set it as a target. Direct2D considers this call to ID2D1DeviceContext::SetTarget to be an error because a command list’s content cannot change after it has been closed. Setting a command list as a target indicates an intent to render to it.
To address this message, do not call ID2D1DeviceContext::SetTarget with a command list that has been closed. If it is necessary to use a command list with new, different content, create a new command list.