I found that falling back to the software renderer as described in the other thread by matt enables juce8 binaries to run and display under wine.
It’s possible to detect whether the code is running under wine using:
bool _runningUnderWine() {
auto hntdll = GetModuleHandleA("ntdll.dll");
if (!hntdll) return false;
auto pwine_get_version = GetProcAddress(hntdll, "wine_get_version");
return (pwine_get_version != nullptr);
}
That way d2d can be disabled only when running under Wine.