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

Direct2D: Avoid presenting incomplete buffers after startFrame fails

This commit is contained in:
reuk 2024-10-09 13:15:45 +01:00
parent b52f5cff21
commit d22d287c6f

View file

@ -245,6 +245,10 @@ public:
// Require the entire window to be repainted
deferredRepaints = size;
// The backbuffer has no valid content until we paint a full frame
dirtyRegionsInBackBuffer.clear();
InvalidateRect (hwnd, nullptr, TRUE);
// Resize/scale the swap chain