diff --git a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp index 6ee421f4e1..de9d63de3d 100644 --- a/modules/juce_graphics/effects/juce_DropShadowEffect.cpp +++ b/modules/juce_graphics/effects/juce_DropShadowEffect.cpp @@ -68,7 +68,8 @@ void DropShadow::drawForPath (Graphics& g, const Path& path) const if (area.getWidth() <= 2 || area.getHeight() <= 2) return; - Image pathImage { Image::SingleChannel, area.getWidth(), area.getHeight(), true }; + const auto tempImageType = g.getInternalContext().getPreferredImageTypeForTemporaryImages(); + Image pathImage { Image::SingleChannel, area.getWidth(), area.getHeight(), true, *tempImageType }; pathImage.setBackupEnabled (false); {