< prev index next >

src/java.desktop/macosx/classes/sun/java2d/opengl/CGLGraphicsConfig.java

Print this page

        

*** 73,83 **** private int pixfmt; private BufferCapabilities bufferCaps; private long pConfigInfo; private ContextCapabilities oglCaps; ! private OGLContext context; private final Object disposerReferent = new Object(); private final int maxTextureSize; private static native boolean initCGL(); private static native long getCGLConfigInfo(int displayID, int visualnum, --- 73,83 ---- private int pixfmt; private BufferCapabilities bufferCaps; private long pConfigInfo; private ContextCapabilities oglCaps; ! private final OGLContext context; private final Object disposerReferent = new Object(); private final int maxTextureSize; private static native boolean initCGL(); private static native long getCGLConfigInfo(int displayID, int visualnum,
*** 103,113 **** this.pixfmt = pixfmt; this.pConfigInfo = configInfo; this.oglCaps = oglCaps; this.maxTextureSize = maxTextureSize; ! context = new OGLContext(OGLRenderQueue.getInstance(), this); // add a record to the Disposer so that we destroy the native // CGLGraphicsConfigInfo data when this object goes away Disposer.addRecord(disposerReferent, new CGLGCDisposerRecord(pConfigInfo)); --- 103,113 ---- this.pixfmt = pixfmt; this.pConfigInfo = configInfo; this.oglCaps = oglCaps; this.maxTextureSize = maxTextureSize; ! context = new OGLContext(OGLRenderQueue.getInstance()); // add a record to the Disposer so that we destroy the native // CGLGraphicsConfigInfo data when this object goes away Disposer.addRecord(disposerReferent, new CGLGCDisposerRecord(pConfigInfo));
< prev index next >