src/windows/classes/sun/java2d/d3d/D3DSurfaceDataProxy.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2008, 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 --- 1,7 ---- /* ! * 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,80 **** { if (cachedData == null || cachedData.isSurfaceLost()) { try { cachedData = d3dgc.createManagedSurface(w, h, transparency); } catch (InvalidPipeException e) { ! if (!d3dgc.getD3DDevice().isD3DAvailable()) { invalidate(); flush(); return null; } } --- 70,80 ---- { if (cachedData == null || cachedData.isSurfaceLost()) { try { cachedData = d3dgc.createManagedSurface(w, h, transparency); } catch (InvalidPipeException e) { ! if (D3DGraphicsDevice.isD3DAvailable()) { invalidate(); flush(); return null; } }