changeset 5611:6af0f4099136

RT-33028: Scene not fully repainted when surface is lost and dirtyopts are enabled Reviewed-by: kcr, ckyang
author vadim
date Fri, 01 Nov 2013 13:20:58 +0400
parents b28bd41e9b56
children b4c9d8ff1ce0
files modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PresentingPainter.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PresentingPainter.java	Fri Nov 01 12:44:17 2013 +0400
+++ b/modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PresentingPainter.java	Fri Nov 01 13:20:58 2013 +0400
@@ -68,6 +68,9 @@
                 factory = GraphicsPipeline.getDefaultResourceFactory();
             }
             if (factory == null || !factory.isDeviceReady()) {
+                if (!sceneState.getScene().isEntireSceneDirty()) {
+                    sceneState.getScene().entireSceneNeedsRepaint();
+                }
                 return;
             }