1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Direct2D: Disable software backup for component effect image

Co-authored-by: Matt Gonzalez <matt@echoaudio.com>
This commit is contained in:
Matt Gonzalez 2025-01-23 17:21:15 -08:00 committed by Oli
parent c167c6dfde
commit e9a5531587

View file

@ -215,7 +215,10 @@ public:
auto scaledBounds = c.getLocalBounds() * scale;
if (effectImage.getBounds() != scaledBounds)
{
effectImage = Image { c.isOpaque() ? Image::RGB : Image::ARGB, scaledBounds.getWidth(), scaledBounds.getHeight(), false };
effectImage.setBackupEnabled (false);
}
if (! c.isOpaque())
effectImage.clear (effectImage.getBounds());