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:
parent
b52f5cff21
commit
d22d287c6f
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue