From 4d493ac36bd5d763d2af3243e799bbaef3679594 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 17 Oct 2009 13:44:12 -0700 Subject: All tracker are aggregated in the GLContext now and used within the GL*Impl. New GLStateTracker: - Tracking client/server states - Currently supports PixelStorei - Prologued in glPixelStorei and glGetIntegerv, the latter will return the tracked state if available and not call the GL method. Impacts performance and ES1 compatibility (supports ALIGNMENT). Fixed 'imageSizeInBytes' calculation: - skipPixels and skipRows is a static one time offset --- .../classes/com/sun/opengl/impl/macosx/cgl/MacOSXExternalCGLContext.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/jogl/classes/com/sun/opengl/impl/macosx') diff --git a/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXExternalCGLContext.java b/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXExternalCGLContext.java index 03116f6bd..0e468e5c5 100644 --- a/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXExternalCGLContext.java +++ b/src/jogl/classes/com/sun/opengl/impl/macosx/cgl/MacOSXExternalCGLContext.java @@ -57,6 +57,7 @@ public class MacOSXExternalCGLContext extends MacOSXCGLContext { this.nsContext = nsContext; GLContextShareSet.contextCreated(this); setGLFunctionAvailability(false); + getGLStateTracker().setEnabled(false); // external context usage can't track state in Java } protected static MacOSXExternalCGLContext create(GLDrawableFactory factory, GLProfile glp) { -- cgit v1.2.3