What does HRESULT 0x88990015 (D2DERR_WRONG_RESOURCE_DOMAIN) mean?

 
Previous Next
D2DERR_POP_CALL_DID_NOT_MATCH_PUSH D2DERR_PUSH_POP_UNBALANCED

D2DERR_WRONG_RESOURCE_DOMAIN

D2DERR_WRONG_RESOURCE_DOMAIN means that the resource was created for a different Direct2D render-target resource domain. Device-dependent resources are not universally transferable between unrelated targets.

What to check

  • Track which render target or device context created each bitmap, brush, layer, or compatible target.
  • Recreate target-dependent resources after switching targets or recovering from device loss.
  • Keep device-independent data separately so it can be used to rebuild resources for the current target.

Resources created from different targets can look compatible in code but still be invalid to draw together.

Microsoft: Direct2D error codes


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