--- old/src/java.desktop/macosx/classes/sun/java2d/opengl/CGLLayer.java 2015-08-27 16:28:25.000000000 +0300 +++ new/src/java.desktop/macosx/classes/sun/java2d/opengl/CGLLayer.java 2015-08-27 16:28:25.000000000 +0300 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2015, 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 @@ -77,7 +77,7 @@ } public Object getDestination() { - return peer; + return peer.getTarget(); } public SurfaceData replaceSurfaceData() {