7003434: test/closed/java/awt/FullScreen/DisplayChangeVITest/DisplayChangeVITest.java fails with ClassCastExc
Reviewed-by: jgodinez, prr
--- a/jdk/src/windows/classes/sun/java2d/opengl/WGLVolatileSurfaceManager.java Fri Dec 24 09:31:32 2010 -0800
+++ b/jdk/src/windows/classes/sun/java2d/opengl/WGLVolatileSurfaceManager.java Thu Dec 30 11:33:10 2010 +0300
@@ -133,7 +133,9 @@
@Override
protected boolean isConfigValid(GraphicsConfiguration gc) {
- return ((gc == null) || (gc == vImg.getGraphicsConfig()));
+ return ((gc == null) ||
+ ((gc instanceof WGLGraphicsConfig) &&
+ (gc == vImg.getGraphicsConfig())));
}
@Override