What does HRESULT 0x88990013 (D2DERR_LAYER_ALREADY_IN_USE) mean?

 
Previous Next
D2DERR_WRONG_FACTORY D2DERR_POP_CALL_DID_NOT_MATCH_PUSH

D2DERR_LAYER_ALREADY_IN_USE

D2DERR_LAYER_ALREADY_IN_USE means that a layer resource is already active in a Direct2D draw sequence. A single layer can be in use only once at a time, so reusing it before its matching pop or completion is invalid.

What to check

  • Pair every PushLayer with the corresponding PopLayer.
  • Do not reuse one layer recursively or concurrently for nested rendering.
  • Allocate separate layer resources for overlapping or nested layer scopes.

This is usually a stack-discipline error in the renderer rather than a failure of the layer allocation itself.

Microsoft: Direct2D error codes


Looking for a different code? Search another status or error code.