What does HRESULT 0x88990018 (D2DERR_INCOMPATIBLE_BRUSH_TYPES) mean?

 
Previous Next
D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT D2DERR_WIN32_ERROR

D2DERR_INCOMPATIBLE_BRUSH_TYPES

D2DERR_INCOMPATIBLE_BRUSH_TYPES means that the Direct2D operation received brush objects whose types are not supported together by that method. The issue is the brush interface or implementation combination, not merely brush color or opacity.

What to check

  • Review the accepted brush types for the exact method being called.
  • Verify that effect, image, and target-specific brush requirements are met.
  • Create or convert a brush of a compatible type rather than forcing an unrelated brush into the call.

Log the concrete brush types and the operation name; this is usually enough to identify the incompatible combination.

Microsoft: Direct2D error codes


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