src/windows/classes/sun/java2d/d3d/D3DSurfaceDataProxy.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -70,11 +70,11 @@
{
if (cachedData == null || cachedData.isSurfaceLost()) {
try {
cachedData = d3dgc.createManagedSurface(w, h, transparency);
} catch (InvalidPipeException e) {
- if (!d3dgc.getD3DDevice().isD3DAvailable()) {
+ if (!D3DGraphicsDevice.isD3DAvailable()) {
invalidate();
flush();
return null;
}
}