7003434: test/closed/java/awt/FullScreen/DisplayChangeVITest/DisplayChangeVITest.java fails with ClassCastExc

Reviewed-by: jgodinez, prr
This commit is contained in:
Andrew Brygin 2010-12-30 11:33:10 +03:00
parent 0370a1df6b
commit ec54e400ee

View file

@ -133,7 +133,9 @@ public class WGLVolatileSurfaceManager
@Override
protected boolean isConfigValid(GraphicsConfiguration gc) {
return ((gc == null) || (gc == vImg.getGraphicsConfig()));
return ((gc == null) ||
((gc instanceof WGLGraphicsConfig) &&
(gc == vImg.getGraphicsConfig())));
}
@Override