Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.08 KB

d1153.md

File metadata and controls

38 lines (24 loc) · 1.08 KB
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.
D1153 Closed Command Lists Cannot Be Set As Targets Direct2D
apiref
D1153 Closed Command Lists Cannot Be Set As Targets
NA
reference
05/31/2018

D1153: Closed Command Lists Cannot Be Set As Targets

An attempt was made to set a closed command list on a target.

 

Possible Causes

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.

Possible Fixes

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.