X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FDarwin.java;h=77434418b076bef307bd5f3589c9109edae52650;hb=b213eae7072297f9121511fa671062f9b07fcc59;hp=f3dd6704c5fb3f1c8e417842a27092a3206eef6d;hpb=bcbd0590fb700778ce02717ae1676859254e284d;p=org.ibex.core.git diff --git a/src/org/xwt/plat/Darwin.java b/src/org/xwt/plat/Darwin.java index f3dd670..7743441 100644 --- a/src/org/xwt/plat/Darwin.java +++ b/src/org/xwt/plat/Darwin.java @@ -101,20 +101,20 @@ public class Darwin extends POSIX { private final class CarbonOpenGL extends OpenGL { public RawData rawPixelFormat; - public RawData rawSharedInterpreter; + public RawData rawSharedContext; public int maxAglSurfaceTexSize; public int maxSurfaceWidth; public int maxSurfaceHeight; private native boolean initPixelFormat(); - private native void initSharedInterpreter(); + private native void initSharedContext(); public CarbonOpenGL() throws NotSupportedException { if(!jaguar) throw new NotSupportedException("OpenGL requires Mac OS X 10.2 or greater"); if(!initPixelFormat()) throw new NotSupportedException("Couldn't get an acceptable pixel format"); - initSharedInterpreter(); + initSharedContext(); } public void init() throws NotSupportedException { @@ -126,7 +126,7 @@ public class Darwin extends POSIX { } maxSurfaceWidth = maxSurfaceHeight = maxAglSurfaceTexSize; } - protected native void activateSharedInterpreter(); + protected native void activateSharedContext(); } static abstract class CarbonSurface extends Surface.DoubleBufferedSurface { @@ -219,7 +219,7 @@ public class Darwin extends POSIX { CarbonMessage.add(new CarbonMessage() { public void perform() { GLCarbonPixelBuffer.this.natInit(); sem.release(); } }); sem.block(); } - public native void activateInterpreter(); + public native void activateContext(); protected void finalize() { CarbonMessage.add(new CarbonMessage() { public void perform() { natCleanup(rawWindowRef,rawCTX); } }); gl.deleteTexture(textureName);