JUCE 8 Standalone Plugin Direct2D Assert On Launch

I just tested this on a few machines (xps laptop, integrated graphics, windows 11; desktop PC, integrated graphics, windows 11; desktop PC, NVidia GT 1030, windows 10) and couldn’t get the assertion to fire on any of those.

Please could you try making the following changes in modules/juce_graphics/native/juce_DirectX_windows.h:

  • Line 63, add | D3D11_CREATE_DEVICE_DEBUG at the end of the statement to enable D3D debug mode.
  • Line 269, change D2D1_DEBUG_LEVEL_NONE to D2D1_DEBUG_LEVEL_INFORMATION to enable D2D debug mode.

Then, re-run the program and inspect the console/debug output. The runtime should print a diagnostic message to explain the error. If you can provide the full text of the error, that will help us to debug further.