< prev index next >
src/java.desktop/windows/classes/sun/java2d/opengl/WGLGraphicsConfig.java
Print this page
*** 69,79 ****
private static ImageCapabilities imageCaps = new WGLImageCaps();
private BufferCapabilities bufferCaps;
private long pConfigInfo;
private ContextCapabilities oglCaps;
! private OGLContext context;
private Object disposerReferent = new Object();
public static native int getDefaultPixFmt(int screennum);
private static native boolean initWGL();
private static native long getWGLConfigInfo(int screennum, int visualnum);
--- 69,79 ----
private static ImageCapabilities imageCaps = new WGLImageCaps();
private BufferCapabilities bufferCaps;
private long pConfigInfo;
private ContextCapabilities oglCaps;
! private final OGLContext context;
private Object disposerReferent = new Object();
public static native int getDefaultPixFmt(int screennum);
private static native boolean initWGL();
private static native long getWGLConfigInfo(int screennum, int visualnum);
*** 88,98 ****
long configInfo, ContextCapabilities oglCaps)
{
super(device, visualnum);
this.pConfigInfo = configInfo;
this.oglCaps = oglCaps;
! context = new OGLContext(OGLRenderQueue.getInstance(), this);
// add a record to the Disposer so that we destroy the native
// WGLGraphicsConfigInfo data when this object goes away
Disposer.addRecord(disposerReferent,
new WGLGCDisposerRecord(pConfigInfo));
--- 88,98 ----
long configInfo, ContextCapabilities oglCaps)
{
super(device, visualnum);
this.pConfigInfo = configInfo;
this.oglCaps = oglCaps;
! context = new OGLContext(OGLRenderQueue.getInstance());
// add a record to the Disposer so that we destroy the native
// WGLGraphicsConfigInfo data when this object goes away
Disposer.addRecord(disposerReferent,
new WGLGCDisposerRecord(pConfigInfo));
< prev index next >